fixup b41cc8bc: only rewrite query if regexp
This commit is contained in:
parent
bf8d33a3f4
commit
2760b0764b
|
@ -131,7 +131,9 @@
|
|||
}
|
||||
|
||||
function matchesOnScrollbar(query, ...args) {
|
||||
if (query instanceof RegExp) {
|
||||
query = new RegExp(/(?:^|[^\w.#\\-])/.source + query.source.slice(2, -2) + /(?:[^\w.#\\-]|$)/.source);
|
||||
}
|
||||
return originalMatchesOnScrollbar.call(this, query, ...args);
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue
Block a user