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