(phone = "")
| 52 | } |
| 53 | |
| 54 | function maskPhone(phone = "") { |
| 55 | return String(phone).replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"); |
| 56 | } |
| 57 | |
| 58 | function md5(text) { |
| 59 | return crypto.createHash("md5").update(String(text)).digest("hex"); |
no outgoing calls
no test coverage detected