mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Remove stray character
This commit is contained in:
parent
0d4f55ff30
commit
4ee38a056e
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ function hrefSanitizer(
|
|||
}
|
||||
if ( source === 'text' ) {
|
||||
return elem.textContent
|
||||
.replace(/^[^\x21-\x7e]+|/, '') // remove leading invalid characters
|
||||
.replace(/^[^\x21-\x7e]+/, '') // remove leading invalid characters
|
||||
.replace(/[^\x21-\x7e]+$/, ''); // remove trailing invalid characters
|
||||
}
|
||||
const steps = source.replace(/(\S)\?/g, '\\1 ?').split(/\s+/);
|
||||
|
|
|
|||
Loading…
Reference in a new issue