Browse Source

【证件类型】护照正则错误

dev
wangxianzhang 3 years ago
parent
commit
8fbe4bdd9b
  1. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/IdCardRegexUtils.java

2
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/IdCardRegexUtils.java

@ -25,7 +25,7 @@ public class IdCardRegexUtils {
/** /**
* 9位护照 * 9位护照
*/ */
private static final Pattern PATTERN_9_PASSPORT = Pattern.compile("^\\w{2}\\d{7}$|^\\w{1}\\d{8}$"); private static final Pattern PATTERN_9_PASSPORT = Pattern.compile("^[a-zA-Z]{2}\\d{7}$|^[a-zA-Z]{1}\\d{8}$");
private String inputText; private String inputText;

Loading…
Cancel
Save