MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / shortToken

Function shortToken

wxapp/haitian.js:56–59  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

54}
55
56function shortToken(token = "") {
57 const value = String(token || "");
58 return value ? `${value.slice(0, 6)}***${value.slice(-6)}` : "";
59}
60
61function maskPhone(phone = "") {
62 return String(phone || "").replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");

Callers 3

constructorMethod · 0.70
runMethod · 0.70
loginByWxCodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected