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

Function mask

wxapp/yichengtong.js:73–78  ·  view source on GitHub ↗
(value = "")

Source from the content-addressed store, hash-verified

71}
72
73function mask(value = "") {
74 value = String(value);
75 if (!value) return "";
76 if (value.length <= 12) return `${value.slice(0, 3)}***`;
77 return `${value.slice(0, 6)}***${value.slice(-6)}`;
78}
79
80function parseAccount(raw) {
81 const text = String(raw || "").trim();

Callers 2

loginByCodeMethod · 0.70
loginByOperateDataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected