Fix the new lint errors.
This commit is contained in:
parent
9ab79ac1fc
commit
5d1da6377d
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue