Improve exclude rule matching
This commit is contained in:
parent
744bf01147
commit
edce348050
|
@ -523,7 +523,7 @@ const styleManager = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildGlob(text) {
|
function buildGlob(text) {
|
||||||
return '^' + escapeRegExp(text).replace(/\\\\\\\*|\\\*/g, m => m.length > 2 ? m : '.*') + '$';
|
return '^' + escapeRegExp(text).replace(/\\\\\\\*|\\\*/g, m => m.length > 2 ? m : '((\/|#|\\?).*)?') + '$';
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDomain(url) {
|
function getDomain(url) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user