aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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.