优化身份证脱敏正则

pull/530/head
RuoYi 1 month ago
parent 66ebd480e1
commit fb4f63c883

@ -23,7 +23,7 @@ public enum DesensitizedType
/** /**
* 10 * 10
*/ */
ID_CARD(s -> s.replaceAll("(\\d{4})\\d{10}(\\d{4})", "$1** **** ****$2")), ID_CARD(s -> s.replaceAll("(\\d{4})\\d{10}(\\d{3}[Xx]|\\d{4})", "$1** **** ****$2")),
/** /**
* 4 * 4

Loading…
Cancel
Save