Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ maskPhone
Function
maskPhone
wxapp/nissin.js:51–53 ·
view source on GitHub ↗
(phone = "")
Source
from the content-addressed store, hash-verified
49
}
50
51
function
maskPhone(phone =
""
) {
52
return
String(phone).replace(/^(\d{3})\d{4}(\d{4})$/,
"$1****$2"
);
53
}
54
55
function
isTokenError(e) {
56
const
message = String(e?.message || e ||
""
);
Callers
1
getUser
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected