File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1163,6 +1163,14 @@ export class GithubHelper {
11631163 if ( add_line ) str = GithubHelper . addMigrationLine ( str , item , repoLink ) ;
11641164 let reString = '' ;
11651165
1166+ // Store usernames found in the text
1167+ const matches : Array < string > = str . match ( usernameRegex ) ;
1168+ if ( matches && matches . length > 0 ) {
1169+ for ( const username of matches ) {
1170+ this . users . add ( username . substring ( 1 ) ) ;
1171+ }
1172+ }
1173+
11661174 //
11671175 // User name conversion
11681176 //
@@ -1175,14 +1183,6 @@ export class GithubHelper {
11751183 ) ;
11761184 }
11771185
1178- // Store usernames found in the text
1179- const matches : Array < string > = str . match ( usernameRegex ) ;
1180- if ( matches && matches . length > 0 ) {
1181- for ( const username of matches ) {
1182- this . users . add ( username . substring ( 1 ) ) ;
1183- }
1184- }
1185-
11861186 //
11871187 // Issue reference conversion
11881188 //
You can’t perform that action at this time.
0 commit comments