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

Function mask

wxapp/junpinhui.js:53–58  ·  view source on GitHub ↗
(value = "")

Source from the content-addressed store, hash-verified

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

Callers 3

loginMethod · 0.70
queryMemberMethod · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected