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

Function maskPhone

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

Source from the content-addressed store, hash-verified

52}
53
54function maskPhone(phone = "") {
55 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
56}
57
58function md5(text) {
59 return crypto.createHash("md5").update(String(text)).digest("hex");

Callers 2

loginByWxCodeMethod · 0.70
getUserMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected