Skip to content

Commit

Permalink
fix: use semver-regex replacer func
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Apr 19, 2020
1 parent 7d8b24b commit 2cc3bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
files: ['docs/docs/configure-deploy.md']
},
{
replacer: ({content, next}) => content.replace(/(v[0-9a-zA-Z\\.\\-]+)/gi, `${next}`),
replacer: ({content, next}) => content.replace(/v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gi, `${next}`),
files: [
'docs/docs/install.md',
]
Expand Down

0 comments on commit 2cc3bbb

Please sign in to comment.