assets/src/org/ruboto/Script.java in ruboto-0.8.1 vs assets/src/org/ruboto/Script.java in ruboto-0.9.0.rc.0
- old
+ new
@@ -38,12 +38,12 @@
}
public static String toSnakeCase(String s) {
return s.replaceAll(
String.format("%s|%s|%s",
- "(?<=[A-Z])(?=[A-Z][a-z])",
+ "(?<=[A-Z])(?=[A-Z][a-z0-9])",
"(?<=[^A-Z])(?=[A-Z])",
- "(?<=[A-Za-z])(?=[^A-Za-z])"
+ "(?<=[A-Za-z0-9])(?=[^A-Za-z0-9])"
),
"_"
).replace("__", "_").toLowerCase();
}