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

Function shortToken

wxapp/ykb_all.js:158–161  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

156}
157
158function shortToken(token = "") {
159 const value = String(token).replace(/^Token\s+/i, "");
160 return value ? `${value.slice(0, 4)}***${value.slice(-4)}` : "";
161}
162
163function maskPhone(phone = "") {
164 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");

Callers 1

runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected