Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ maskPhone
Function
maskPhone
wxapp/roki.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
shortValue(value =
""
) {
66
const
text = String(value ||
""
);
Callers
1
getUserInfo
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected