MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / shortToken

Function shortToken

wxapp/colorful.js:68–71  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

66}
67
68function shortToken(token = "") {
69 const value = String(token || "").replace(/^Bearer\s+/i, "");
70 return value ? `${value.slice(0, 6)}***${value.slice(-6)}` : "";
71}
72
73function maskPhone(phone = "") {
74 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