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

Function maskPhone

wxapp/haitian.js:61–63  ·  view source on GitHub ↗
(phone = "")

Source from the content-addressed store, hash-verified

59}
60
61function maskPhone(phone = "") {
62 return String(phone || "").replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2");
63}
64
65function randomUuid(len = 20) {
66 const chars = "abcdef0123456789";

Callers 1

getUserInfoMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected