aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-04-27 16:32:50 +0100
committerStephen Blott2015-04-27 16:32:50 +0100
commit078c718b19929b0245cee9b82fc50dd258f0a82d (patch)
tree560bb7e3ddcc8b2288006e6f8db4b174bf26f84c /background_scripts
parentde0e734536d6a079fcd222ba5b46767410f98581 (diff)
parentc237fd47d47f93bc2b23bd7e68df44bd5d9fecb5 (diff)
downloadvimium-078c718b19929b0245cee9b82fc50dd258f0a82d.tar.bz2
Merge pull request #1591 from smblott-github/fix-passkeys-inner-trim
Do not remove inner whitespace from passkeys configuration
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