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

Function shortToken

wxapp/zbs.js:61–64  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

59}
60
61function shortToken(token = "") {
62 const value = String(token);
63 return value ? `${value.slice(0, 6)}***${value.slice(-6)}` : "";
64}
65
66function maskPhone(phone = "") {
67 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