aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorJez Ng2013-01-02 17:05:08 -0500
committerJez Ng2013-01-02 17:05:31 -0500
commit4dba0638e5872318423bbc9c13f4fbebf3b14ce9 (patch)
tree3934b6c2df8c463be375d1198ff3de44a68f04cd /background_scripts/completion.coffee
parent53354147f366cfe933d31db98bce5c8b1f735ad3 (diff)
downloadvimium-4dba0638e5872318423bbc9c13f4fbebf3b14ce9.tar.bz2
Make smartcase locale-aware.
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 951d0756..fd41cdc8 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -356,7 +356,7 @@ RegexpCache =
regexpString = prefix + regexpString if prefix
regexpString = regexpString + suffix if suffix
# Smartcase: Regexp is case insensitive, unless `string` contains a capital letter (testing `string`, not `regexpString`).
- @cache[regexpString] ||= new RegExp regexpString, (if /[A-Z]/.test string then "" else "i")
+ @cache[regexpString] ||= new RegExp regexpString, (if Utils.hasUpperCase(string) then "" else "i")
# Provides cached access to Chrome's history. As the user browses to new pages, we add those pages to this
# history cache.