|
@@ -26,17 +26,20 @@ public class VerifyUtil {
|
|
|
if (StringUtil.isEmpty(type)) {
|
|
|
return false;
|
|
|
}
|
|
|
- String regex = type + "\\.[1-9]\\d?";
|
|
|
+// String regex = type + "\\.[1-9]\\d?";
|
|
|
+ String regex = type + "\\.(0|[1-9]\\d?)";
|
|
|
return Pattern.matches(regex, val);
|
|
|
}
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- String str = "1.1+拟诊";
|
|
|
+ String str = "1.99";
|
|
|
+ System.out.println(verifyCode("1", str));
|
|
|
+
|
|
|
List<String> code = new ArrayList<>();
|
|
|
- code.add("拟诊");
|
|
|
- code.add("1.1");
|
|
|
- System.out.println(verifyFormula(code, str));
|
|
|
+// code.add("拟诊");
|
|
|
+// code.add("1.1");
|
|
|
+// System.out.println(verifyFormula(code, str));
|
|
|
// List<String> list = new ArrayList<>();
|
|
|
// list.add("1.1");
|
|
|
// list.add("1.2");
|