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

Function maskPhone

wxapp/dasenlin.js:62–64  ·  view source on GitHub ↗
(phone = "")

Source from the content-addressed store, hash-verified

60}
61
62function maskPhone(phone = "") {
63 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
64}
65
66function md5(text) {
67 return crypto.createHash("md5").update(String(text)).digest("hex").toLowerCase();

Callers 2

loginByWxCodeMethod · 0.70
getSignInfoMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected