auto commit

This commit is contained in:
CyC2018 2018-03-19 15:45:02 +08:00
parent 034a3adb18
commit 3ec5475080

View File

@ -920,8 +920,7 @@ public boolean match(char[] str, char[] pattern) {
```java
public boolean isNumeric(char[] str) {
String string = String.valueOf(str);
return string.matches("[\\+-]?[0-9]*(\\.[0-9]*)?([eE][\\+-]?[0-9]+)?");
return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?");
}
```