aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-27 02:06:54 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-27 02:06:54 +0800
commit0a1253517f3996842f311f9e4d26068040b93394 (patch)
tree351d42e6d3dde355481f7e5a339d50aee9bd1dad /features
parentcf1956ab2c05b9a636611d96d75d62cb22ed7e34 (diff)
downloadSoopyV2-0a1253517f3996842f311f9e4d26068040b93394.tar.gz
SoopyV2-0a1253517f3996842f311f9e4d26068040b93394.tar.bz2
SoopyV2-0a1253517f3996842f311f9e4d26068040b93394.zip
Remove useless escape
Diffstat (limited to 'features')
-rw-r--r--features/spamHider/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/spamHider/index.js b/features/spamHider/index.js
index c5ec5e3..d49f62e 100644
--- a/features/spamHider/index.js
+++ b/features/spamHider/index.js
@@ -85,14 +85,14 @@ class SpamHider extends Feature {
this.hideMessagesRexex = []
this.hideMessages.forEach(message=>{
- let regex = new RegExp(message.replace(/[\\^$*+?.()|[\]{}]/g, '\$&')
+ let regex = new RegExp(message.replace(/[\\^$*+?.()|[\]{}]/g, '$&')
.replace(/\$\{\*\}/g, "(?:.+)"))
this.hideMessagesRexex.push(regex)
})
this.moveMessagesRexex = []
this.moveMessages.forEach(message=>{
- let regex = new RegExp(message.replace(/[\\^$*+?.()|[\]{}]/g, '\$&')
+ let regex = new RegExp(message.replace(/[\\^$*+?.()|[\]{}]/g, '$&')
.replace(/\$\{\*\}/g, "(?:.+)"))
this.moveMessagesRexex.push(regex)