From e3ad8f5c88b2ccc513a99753e221ba71b4aa0cda Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Fri, 11 May 2018 16:25:23 +0800 Subject: [PATCH] auto commit --- .../\345\211\221\346\214\207 offer \351\242\230\350\247\243.md" | 2 ++ 1 file changed, 2 insertions(+) diff --git "a/notes/\345\211\221\346\214\207 offer \351\242\230\350\247\243.md" "b/notes/\345\211\221\346\214\207 offer \351\242\230\350\247\243.md" index 5e2b2553..b785b54d 100644 --- "a/notes/\345\211\221\346\214\207 offer \351\242\230\350\247\243.md" +++ "b/notes/\345\211\221\346\214\207 offer \351\242\230\350\247\243.md" @@ -1017,6 +1017,8 @@ public boolean match(char[] str, char[] pattern) { ```java public boolean isNumeric(char[] str) { + if (str == null) + return false; return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?"); } ``` -- GitLab