mirror of https://github.com/gorhill/uBlock.git
Fix case-sensitiveness in :has-text() (regression)
Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/zqot4i/is_there_a_way_to_show_only_element_with_specific/j0zl4ck/
This commit is contained in:
parent
73c50a4077
commit
3fe6846da7
|
@ -41,7 +41,7 @@ const regexFromString = (s, exact = false) => {
|
||||||
return new RegExp(match[1], match[2] || undefined);
|
return new RegExp(match[1], match[2] || undefined);
|
||||||
}
|
}
|
||||||
const reStr = s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
const reStr = s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||||
return new RegExp(exact ? `^${reStr}$` : reStr, 'i');
|
return new RegExp(exact ? `^${reStr}$` : reStr);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 'P' stands for 'Procedural'
|
// 'P' stands for 'Procedural'
|
||||||
|
|
Loading…
Reference in New Issue