Merge pull request #245 from EvanLjp/master

reapired the mistake ,which is the regular expression can inut a nill…
This commit is contained in:
CyC2018 2018-05-11 16:21:31 +08:00 committed by GitHub
commit 641325422f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1017,6 +1017,7 @@ public boolean match(char[] str, char[] pattern) {
```java
public boolean isNumeric(char[] str) {
if(str.length==0||str==null) return false;
return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?");
}
```