aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-08-23 20:52:56 +0100
committerStephen Blott2014-08-23 20:52:56 +0100
commit7a0943b549986a060282e8047f14a58fbdb5acc3 (patch)
tree957a7dfba627357d4f04f81d66fd86080806d0d3
parent2f786a62ad36631c4dc1a75595b41d61281727dc (diff)
downloadvimium-7a0943b549986a060282e8047f14a58fbdb5acc3.tar.bz2
Allow passing of keys to the underlying page (comments can start with " too).
-rw-r--r--background_scripts/main.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 816e4e45..b99d5307 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -74,9 +74,9 @@ getCurrentTabUrl = (request, sender) -> sender.tab.url
#
root.isEnabledForUrl = isEnabledForUrl = (request) ->
# Excluded URLs are stored as a series of URL expressions and optional passKeys, separated by newlines.
- # Lines for which the first non-blank character is "#" are comments.
+ # Lines for which the first non-blank character is "#" or '"' are comments.
excludedLines = (line.trim() for line in Settings.get("excludedUrls").split("\n"))
- excludedSpecs = (line.split(/\s+/) for line in excludedLines when line and line.indexOf("#") != 0)
+ excludedSpecs = (line.split(/\s+/) for line in excludedLines when line and line.indexOf("#") != 0 and line.indexOf('"') != 0)
for spec in excludedSpecs
url = spec[0]
# The user can add "*" to the URL which means ".*"