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

Function mask

wxapp/airui.js:52–57  ·  view source on GitHub ↗
(value = "")

Source from the content-addressed store, hash-verified

50}
51
52function mask(value = "") {
53 value = String(value);
54 if (!value) return "";
55 if (value.length <= 12) return `${value.slice(0, 3)}***`;
56 return `${value.slice(0, 6)}***${value.slice(-6)}`;
57}
58
59function parseAccount(raw) {
60 const text = String(raw || "").trim();

Callers 3

loginMethod · 0.70
getUserInfoMethod · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected