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:
parent
e5f3d6bdf5
commit
87ea532f41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user