Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ maskPhone
Function
maskPhone
wxapp/colorful.js:73–75 ·
view source on GitHub ↗
(phone = "")
Source
from the content-addressed store, hash-verified
71
}
72
73
function
maskPhone(phone =
""
) {
74
return
String(phone).replace(/^(\d{3})\d{4}(\d{4})$/,
"$1****$2"
);
75
}
76
77
function
md5(str) {
78
return
crypto.createHash(
"md5"
).update(str).digest(
"hex"
);
Callers
1
getUserInfo
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected