(phone = "")
| 60 | } |
| 61 | |
| 62 | function maskPhone(phone = "") { |
| 63 | return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"); |
| 64 | } |
| 65 | |
| 66 | function md5(text) { |
| 67 | return crypto.createHash("md5").update(String(text)).digest("hex").toLowerCase(); |
no outgoing calls
no test coverage detected