mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix typo
This commit is contained in:
parent
6c5dcb43da
commit
8d7469afcf
1 changed files with 1 additions and 1 deletions
|
|
@ -1278,7 +1278,7 @@
|
||||||
let reStr;
|
let reStr;
|
||||||
if ( arg1 === '{{1}}' || arg1 === '' ) {
|
if ( arg1 === '{{1}}' || arg1 === '' ) {
|
||||||
reStr = '^';
|
reStr = '^';
|
||||||
} else if ( arg1.startWith('/') && arg1.endsWith('/') ) {
|
} else if ( arg1.startsWith('/') && arg1.endsWith('/') ) {
|
||||||
reStr = arg1.slice(1, -1);
|
reStr = arg1.slice(1, -1);
|
||||||
} else {
|
} else {
|
||||||
reStr = arg1.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
reStr = arg1.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue