MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / maskPhone

Function maskPhone

wxapp/bluedash.js:52–54  ·  view source on GitHub ↗
(phone = "")

Source from the content-addressed store, hash-verified

50}
51
52function maskPhone(phone = "") {
53 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
54}
55
56class Task {
57 constructor(openid) {

Callers 1

getUserMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected