mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-11 23:47:59 +00:00
commit
3481973c1c
@ -89,8 +89,8 @@
|
|||||||
|
|
||||||
if (pattern[0] === ';') {
|
if (pattern[0] === ';') {
|
||||||
text = text
|
text = text
|
||||||
.replace(new RegExp("(^|\\W)" + $t.quote(pattern), "g"), "\\1" + rep)
|
.replace(new RegExp("(^|\\W)" + $t.quote(pattern), "g"), "$1" + rep)
|
||||||
.replace(new RegExp("(^|\\W)" + $t.quote(encPattent), "g"), "\\1" + rep);
|
.replace(new RegExp("(^|\\W)" + $t.quote(encPattent), "g"), "$1" + rep);
|
||||||
} else {
|
} else {
|
||||||
text = text
|
text = text
|
||||||
.replace(new RegExp($t.quote(pattern), "g"), rep)
|
.replace(new RegExp($t.quote(pattern), "g"), rep)
|
||||||
|
Loading…
Reference in New Issue
Block a user