From e2ea471eff20504b53da36a791769d246fff9593 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 26 Mar 2016 13:39:27 +0000 Subject: Add test for badly-formed exclusion regexp. --- background_scripts/exclusions.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'background_scripts') diff --git a/background_scripts/exclusions.coffee b/background_scripts/exclusions.coffee index 10450670..42d3b872 100644 --- a/background_scripts/exclusions.coffee +++ b/background_scripts/exclusions.coffee @@ -10,6 +10,7 @@ RegexpCache = try new RegExp("^" + pattern.replace(/\*/g, ".*") + "$") catch + BgUtils.log "bad regexp in exclusion rule: #{pattern}" /^$/ # Match the empty string. # The Exclusions class manages the exclusion rule setting. An exclusion is an object with two attributes: -- cgit v1.2.3