filter.js 137 Bytes Raw Blame History Permalink 1 2 3 4 5 6 /* * 隐藏用户手机号中间四位 */ exports.hidePhone = phone => { return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }