Merge pull request #245 from EvanLjp/master
reapired the mistake ,which is the regular expression can inut a nill…
This commit is contained in:
commit
641325422f
|
@ -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+)?");
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user