Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ maskPhone
Function
maskPhone
wxapp/ztkd.js:48–50 ·
view source on GitHub ↗
(phone = "")
Source
from the content-addressed store, hash-verified
46
}
47
48
function
maskPhone(phone =
""
) {
49
return
String(phone ||
""
).replace(/^(\d{3})\d{4}(\d{4})$/,
"$1****$2"
);
50
}
51
52
function
maskToken(token =
""
) {
53
const
value = String(token ||
""
);
Callers
1
login
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected