Fix bug in humaniseCamelCase.

This commit is contained in:
halfdan committed 2014-11-07 21:59:28 +01:00
1 parent 7605dacb8a
commit 1dedb13dc9
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -399,7 +399,7 @@ public final class StringTools {
* @return Readable String representation of input word
*/
public static String humaniseCamelCase(final String word) {
Pattern pattern = Pattern.compile("([A-Z]|[a-z])[a-z]*");
Pattern pattern = Pattern.compile("([A-Z]|[a-z])[a-z0-9]*");
List<String> tokens = new ArrayList<>();
Matcher matcher = pattern.matcher(word);