Skip to content

Commit

Permalink
refactor: changelog space replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaromartmart committed Sep 13, 2021
1 parent 6c43cb9 commit d6d3562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/changelog.js
Expand Up @@ -51,15 +51,15 @@ const formatChanges = (changes) =>
.replace(/[a-z]+\((\w+)\)/, '$1')
// Linkify commit refs.
.replace(
/^(\w+)\s/,
/^(\w+)/,
'* [[$1](https://github.com/boardgameio/boardgame.io/commit/$1)]'
)
// Linkify PR references.
.replace(
/\(#(\d{3,})\)/,
'([#$1](https://github.com/boardgameio/boardgame.io/pull/$1))'
)
.replace(/\)](\w*)/, ')] $1')
.replace(/\)](\w*)/, ')]$1')
)
.join(EOL);

Expand Down

0 comments on commit d6d3562

Please sign in to comment.