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

Function shortToken

wxapp/jingjianx_all.js:205–208  ·  view source on GitHub ↗
(token = "")

Source from the content-addressed store, hash-verified

203}
204
205function shortToken(token = "") {
206 const value = String(token).replace(/^Bearer\s+/i, "");
207 return value ? `${value.slice(0, 4)}***${value.slice(-4)}` : "";
208}
209
210function maskPhone(phone = "") {
211 return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");

Callers 2

runMethod · 0.70
loginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected