Commit 0dc0fa44 authored by 刘基明's avatar 刘基明

屏蔽手机号 fix

parent 2c25ba94
...@@ -21,10 +21,10 @@ public class OtherUtil { ...@@ -21,10 +21,10 @@ public class OtherUtil {
} }
public static String blockPhoneAndEmail(String line) { public static String blockPhoneAndEmail(String line) {
// 屏蔽手机号
line = line.replaceAll(phonePattern,"**********");
// 屏蔽邮箱 // 屏蔽邮箱
line = line.replaceAll(emailPattern,"*@*.com"); line = line.replaceAll(emailPattern,"*@*.com");
// 屏蔽手机号
line = line.replaceAll(phonePattern,"**********");
return line; return line;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment