1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00
This commit is contained in:
Raymond Hill 2021-12-13 14:28:39 -05:00
parent 6c5dcb43da
commit 8d7469afcf
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1278,7 +1278,7 @@
let reStr;
if ( arg1 === '{{1}}' || arg1 === '' ) {
reStr = '^';
} else if ( arg1.startWith('/') && arg1.endsWith('/') ) {
} else if ( arg1.startsWith('/') && arg1.endsWith('/') ) {
reStr = arg1.slice(1, -1);
} else {
reStr = arg1.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');