Fix bug in humaniseCamelCase.

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

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);