This commit is contained in:
Looly
2021-09-17 19:15:43 +08:00
parent 8e2a1ab1ef
commit 96c83cb16b
2 changed files with 3 additions and 1 deletions

View File

@@ -326,6 +326,7 @@ public class IdcardUtil {
} else if (idcard.matches("^[157][0-9]{6}\\(?[0-9A-Z]\\)?$")) { // 澳门
info[0] = "澳门";
info[1] = "N";
info[2] = "true";
} else if (idcard.matches("^[A-Z]{1,2}[0-9]{6}\\(?[0-9A]\\)?$")) { // 香港
info[0] = "香港";
info[1] = "N";