Improve exclude rule matching

This commit is contained in:
narcolepticinsomniac 2019-03-08 03:49:41 -05:00 committed by GitHub
parent 744bf01147
commit edce348050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -523,7 +523,7 @@ const styleManager = (() => {
}
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) {