Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ maskPhone
Function
maskPhone
wxapp/kangshifu.js:68–70 ·
view source on GitHub ↗
(phone = "")
Source
from the content-addressed store, hash-verified
66
}
67
68
function
maskPhone(phone =
""
) {
69
return
String(phone).replace(/^(\d{3})\d{4}(\d{4})$/,
"$1****$2"
);
70
}
71
72
function
isSuccess(result) {
73
return
Number(result?.code) === 0;
Callers
2
loginByWxCode
Method · 0.70
memberInfo
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected