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

Function shortToken

wxapp/fsdlb.js:66–69  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

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