aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.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 /lib/utils.coffee
parent53354147f366cfe933d31db98bce5c8b1f735ad3 (diff)
downloadvimium-4dba0638e5872318423bbc9c13f4fbebf3b14ce9.tar.bz2
Make smartcase locale-aware.
Diffstat (limited to 'lib/utils.coffee')
-rw-r--r--lib/utils.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index 6f84d008..9e15dcc0 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -133,6 +133,9 @@ Utils =
zip: (arrays) ->
arrays[0].map (_,i) ->
arrays.map( (array) -> array[i] )
+
+ # locale-sensitive uppercase detection
+ hasUpperCase: (s) -> s.toLowerCase() != s
# This creates a new function out of an existing function, where the new function takes fewer arguments. This
# allows us to pass around functions instead of functions + a partial list of arguments.