Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/smallfawn/QLScriptPublic
/ maskPhone
Function
maskPhone
wxapp/haitian.js:61–63 ·
view source on GitHub ↗
(phone = "")
Source
from the content-addressed store, hash-verified
59
}
60
61
function
maskPhone(phone =
""
) {
62
return
String(phone ||
""
).replace(/^(\d{3})\d{4}(\d{4})$/,
"$1****$2"
);
63
}
64
65
function
randomUuid(len = 20) {
66
const
chars =
"abcdef0123456789"
;
Callers
1
getUserInfo
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected