Skip to content

Commit

Permalink
Fix @username not having its map applied
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBiggs committed Jan 29, 2019
1 parent c5dc58e commit 9aab9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ function convertIssuesAndComments(str, item) {
// They all have a '#' right after the project name in the issues but we have them without in projectmap
let strWithMigLine = addMigrationLine(str, item);

strWithMigLine.replace(userProjectRe, matched => {
strWithMigLine = strWithMigLine.replace(userProjectRe, matched => {
if (matched.startsWith('@')) {
// this is a userid
return '@' + settings.usermap[matched.substr(1)];
Expand Down Expand Up @@ -631,4 +631,4 @@ function inform(msg) {
console.log("==================================");
console.log(msg)
console.log("==================================");
}
}

0 comments on commit 9aab9ca

Please sign in to comment.