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

Function mask

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

Source from the content-addressed store, hash-verified

76}
77
78function mask(value = "") {
79 value = String(value);
80 if (!value) return "";
81 if (value.length <= 12) return `${value.slice(0, 3)}***`;
82 return `${value.slice(0, 6)}***${value.slice(-6)}`;
83}
84
85function parseCookie(cookie = "") {
86 if (!cookie || typeof cookie !== "string") return {};

Callers 3

loginMethod · 0.70
userInfoMethod · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected