diff --git a/packages/connectors/connector-aliyun-sms/src/index.ts b/packages/connectors/connector-aliyun-sms/src/index.ts index be32e1ae0..841b71d9e 100644 --- a/packages/connectors/connector-aliyun-sms/src/index.ts +++ b/packages/connectors/connector-aliyun-sms/src/index.ts @@ -20,7 +20,7 @@ import { sendSms } from './single-send-text.js'; import type { Template } from './types.js'; import { aliyunSmsConfigGuard, sendSmsResponseGuard } from './types.js'; -const isChinaNumber = (to: string) => /^(\+86|0086|86)?\d{11}$/.test(to); +const isChinaNumber = (to: string) => /^(\+86|0086|86)\d{11}$/.test(to); const getTemplateCode = ({ templateCode }: Template, to: string) => { if (typeof templateCode === 'string') {