aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-04-27 15:53:59 +0100
committerStephen Blott2015-04-27 16:14:47 +0100
commitc237fd47d47f93bc2b23bd7e68df44bd5d9fecb5 (patch)
treee21570ea55712713c6ec42e3a4236406ac9ef6a8 /background_scripts
parentfe8fc2dd9c6f29312769435f78cf1272d3351877 (diff)
downloadvimium-c237fd47d47f93bc2b23bd7e68df44bd5d9fecb5.tar.bz2
Do not remove inner whitespace from passkeys.
Fixes #1585.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/exclusions.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/background_scripts/exclusions.coffee b/background_scripts/exclusions.coffee
index 55ced3ef..b3a3960d 100644
--- a/background_scripts/exclusions.coffee
+++ b/background_scripts/exclusions.coffee
@@ -31,9 +31,11 @@ root.Exclusions = Exclusions =
# An absolute exclusion rule (with no passKeys) takes priority.
for rule in matches
return rule unless rule.passKeys
+ # Strip whitespace from all matching passKeys strings, and join them together.
+ passKeys = (rule.passKeys.split(/\s+/).join "" for rule in matches).join ""
if 0 < matches.length
pattern: (rule.pattern for rule in matches).join " | " # Not used; for debugging only.
- passKeys: Utils.distinctCharacters (rule.passKeys for rule in matches).join ""
+ passKeys: Utils.distinctCharacters passKeys
else
null