(phoneNumber)
| 141 | * @returns {string} 格式化后的手机号 |
| 142 | */ |
| 143 | export function formatPhoneNumber(phoneNumber) { |
| 144 | if (!phoneNumber) return ''; |
| 145 | // 06 1234 5678 格式 |
| 146 | return phoneNumber.replace(/^(\d{2})(\d{4})(\d{4})$/, '$1 $2 $3'); |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * 延迟函数 |
nothing calls this directly
no outgoing calls
no test coverage detected