MCPcopy 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
48function maskPhone(phone = "") {
49 return String(phone || "").replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
50}
51
52function maskToken(token = "") {
53 const value = String(token || "");

Callers 1

loginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected