From 4dba0638e5872318423bbc9c13f4fbebf3b14ce9 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Wed, 2 Jan 2013 17:05:08 -0500 Subject: Make smartcase locale-aware. --- lib/utils.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/utils.coffee') 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. -- cgit v1.2.3