aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-17 13:50:41 +0100
committerStephen Blott2015-05-17 13:50:43 +0100
commit8b966e3d2b313f68f83a2c824ca81f9d80aee059 (patch)
tree6180f34f2fe2bd5cefe383472edbcfa351c5aebb /background_scripts/completion.coffee
parent1d52e2df15a30c2d4df4482d18688a408ce32228 (diff)
downloadvimium-8b966e3d2b313f68f83a2c824ca81f9d80aee059.tar.bz2
For shortened URLs, do not consider case.
This ensures that URLs which differ only in their case are considered duplicates, hence one is dropped.
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 5a47d8db..11c63cf0 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -137,6 +137,7 @@ class Suggestion
url = decodeURI @url
catch
@url
+ url = url.toLowerCase()
for [ filter, replacements ] in @stripPatterns
if new RegExp(filter).test url
for replace in replacements