aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-03-26 13:39:27 +0000
committerStephen Blott2016-03-26 13:39:27 +0000
commite2ea471eff20504b53da36a791769d246fff9593 (patch)
tree0fa9b664f24b1706659bf7c2e6cf4e2c177bc2e7 /background_scripts
parenta1103158551ace4232b613d290f5d193a7c5185f (diff)
downloadvimium-e2ea471eff20504b53da36a791769d246fff9593.tar.bz2
Add test for badly-formed exclusion regexp.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/exclusions.coffee1
1 files changed, 1 insertions, 0 deletions
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: