We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对电话号码的中间4位做脱敏处理,例如:1881234578 -> 188****5678
function desensitize(phoneNumber) { return phoneNumber.replace(/^(\d{3}).+(\d{4})$/, '$1****$2') }
列出方案的具体原理
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
对电话号码的中间4位做脱敏处理,例如:1881234578 -> 188****5678
解决方案
参考链接
列出方案的具体原理
The text was updated successfully, but these errors were encountered: