MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / validatePhoneNumber

Function validatePhoneNumber

src/simyo/js/modules/utils.js:13–15  ·  view source on GitHub ↗
(phoneNumber)

Source from the content-addressed store, hash-verified

11 * @returns {boolean} 是否有效
12 */
13export function validatePhoneNumber(phoneNumber) {
14 return /^06\d{8}$/.test(phoneNumber);
15}
16
17/**
18 * 验证验证码格式

Callers 1

loginMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected