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 a0e2cc0 commit a13cdf5
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 @@ -11,7 +11,7 @@ module.exports = {
]
},
{
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 a13cdf5

Please sign in to comment.