Skip to content

Commit

Permalink
Merge pull request #45 from Elaine666/master
Browse files Browse the repository at this point in the history
issue #24
  • Loading branch information
misakuo authored Jul 2, 2019
2 parents 00783a4 + 0951314 commit a53a03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/moxun/s2v/utils/CommonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static String loadMetaInf(String key, String defValue) {
public static String getValidName(String s) {
char[] chars = s.toLowerCase().replaceAll("\\s*", "").toCharArray();
for (int i = 0; i < chars.length; i++) {
if (!Character.isLetter(chars[i])) {
if (!Character.isLetter(chars[i]) && !Character.isDigit(chars[i])) {
chars[i] = '_';
}
}
Expand Down

0 comments on commit a53a03f

Please sign in to comment.