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

Function maskPhone

wxapp/kangshifu.js:68–70  ·  view source on GitHub ↗
(phone = "")

Source from the content-addressed store, hash-verified

66}
67
68function maskPhone(phone = "") {
69 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
70}
71
72function isSuccess(result) {
73 return Number(result?.code) === 0;

Callers 2

loginByWxCodeMethod · 0.70
memberInfoMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected