mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Mind whitespaces when double-clicking to select filter option value
This commit is contained in:
parent
4c5197322f
commit
32b08dc732
1 changed files with 2 additions and 2 deletions
|
|
@ -657,8 +657,8 @@ CodeMirror.registerHelper('fold', 'ubo-static-filtering', (( ) => {
|
|||
// Better word selection for network filters
|
||||
else if ( /\bnet\b/.test(token) ) {
|
||||
if ( /\bvalue\b/.test(token) ) {
|
||||
const l = /[^,.=|]*$/i.exec(s.slice(0, ch));
|
||||
const r = /^[^#,|]*/i.exec(s.slice(ch));
|
||||
const l = /[^ ,.=|]*$/i.exec(s.slice(0, ch));
|
||||
const r = /^[^ #,|]*/i.exec(s.slice(ch));
|
||||
if ( l && r ) {
|
||||
beg = l.index;
|
||||
end = ch + r[0].length;
|
||||
|
|
|
|||
Loading…
Reference in a new issue