Skip to content

Commit 8036197

Browse files
Fix GitLab username saved after conversion
1 parent 25d690e commit 8036197

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/githubHelper.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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
//

0 commit comments

Comments
 (0)