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

Function maskPhone

wxapp/mfd.js:59–61  ·  view source on GitHub ↗
(phone = "")

Source from the content-addressed store, hash-verified

57}
58
59function maskPhone(phone = "") {
60 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
61}
62
63function shortValue(value = "") {
64 const text = String(value || "");

Callers 2

loginByWxCodeMethod · 0.70
getMemberInfoMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected