Bug fix for java case coercion helpers.

If an empty tab stop was used with either of the java case coercion
helper functions then they would blow up.  Fixed by returning an empty
string if the word passed to them is falsey.
This commit is contained in:
Ryan Pineo 2014-03-29 20:39:14 -04:00
parent e5f3d6bdf5
commit 87ea532f41

View File

@ -25,9 +25,11 @@ def getArgs(group):
return [i.split(" ") for i in word.findall(group) ]
def camel(word):
if not word: return ''
return word[0].upper() + word[1:]
def mixedCase(word):
if not word: return ''
return word[0].lower() + word[1:]
endglobal