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 ```java
public boolean isNumeric(char[] str) { public boolean isNumeric(char[] str) {
String string = String.valueOf(str); return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?");
return string.matches("[\\+-]?[0-9]*(\\.[0-9]*)?([eE][\\+-]?[0-9]+)?");
} }
``` ```