Index: lib/abp2blocklist.js |
=================================================================== |
--- a/lib/abp2blocklist.js |
+++ b/lib/abp2blocklist.js |
@@ -250,17 +250,17 @@ |
// further rules for it, but if not we can simply return now. |
if (!(filter.contentType & whitelistableRequestTypes)) |
return; |
} |
let trigger = {"url-filter": parsed.regexp}; |
// Limit rules to HTTP(S) URLs |
- if (!/^(\^|http)/i.test(trigger["url-filter"])) |
+ if (!/^\^/.test(trigger["url-filter"])) |
trigger["url-filter"] = "^https?://.*" + trigger["url-filter"]; |
// For rules containing only a hostname we know that we're matching against |
// a lowercase string unless the matchCase option was passed. |
if (parsed.canSafelyMatchAsLowercase && !filter.matchCase) |
trigger["url-filter"] = trigger["url-filter"].toLowerCase(); |
if (parsed.canSafelyMatchAsLowercase || filter.matchCase) |