6 lines
171 B
JavaScript
Raw Permalink Normal View History

2025-08-29 09:51:02 +08:00
"use strict";
function formatPhoneNumber(phone) {
return phone ? phone.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : "";
}
exports.formatPhoneNumber = formatPhoneNumber;