fix: use semver-regex replacer func
@@ -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',
]
