diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-12-24 19:23:17 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-01-07 23:25:50 +0300 |
commit | 5d1da6377df993319c77d6133eafd09a1c956990 (patch) | |
tree | ebff04abde53d9b165b4900e59c6a18da93bb687 /build | |
parent | 9ab79ac1fca751c74192aa6e7c05398c65465b31 (diff) |
Fix the new lint errors.
Diffstat (limited to 'build')
-rwxr-xr-x | build/change-version.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/change-version.js b/build/change-version.js index d6fcbfc5a9..0c4f3ef353 100755 --- a/build/change-version.js +++ b/build/change-version.js @@ -17,11 +17,11 @@ sh.config.fatal = true // Blame TC39... https://github.com/benjamingr/RegExp.escape/issues/37 function regExpQuote(string) { - return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&') + return string.replace(/[$()*+-.?[\\\]^{|}]/g, '\\$&') } function regExpQuoteReplacement(string) { - return string.replace(/[$]/g, '$$') + return string.replace(/\$/g, '$$') } const DRY_RUN = false |