Closed giautm closed 4 years ago
This regexp missing flag g so it only replaces first characters https://github.com/FormidableLabs/appr/blob/7073907b3c5d1e85ad76b575852efbb936b69541/scripts/utils.js#L5 Example:
g
'my-app-@giautm/@signature'.replace(/[^a-zA-Z0-9\\-]/, '-') "my-app--giautm/@signature"
This regexp missing flag
g
so it only replaces first characters https://github.com/FormidableLabs/appr/blob/7073907b3c5d1e85ad76b575852efbb936b69541/scripts/utils.js#L5 Example: