Skip to content

Commit

Permalink
gen-changelog: Fix the missing/double hashmarks issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Sep 9, 2016
1 parent 8fa75cd commit e278259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function shortname (url) {
if (repo !== 'npm/npm') {
return `${repo}#${id}`
} else {
return `${id}`
return `#${id}`
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ function main () {
} else if (m = line.match(/^Credit: @(.*)/)) {
if (!commit.credit) commit.credit = []
commit.credit.push(m[1])
} else if (m = line.match(/^Fixes: (.*)/)) {
} else if (m = line.match(/^Fixes: #?(.*?)/)) {
commit.fixes = m[1]
} else if (m = line.match(/^Reviewed-By: @(.*)/)) {
commit.reviewed = m[1]
Expand Down

0 comments on commit e278259

Please sign in to comment.