mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
Mind whitespaces when double-clicking to select filter option value
This commit is contained in:
parent
4c5197322f
commit
32b08dc732
@ -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 New Issue
Block a user