From 4f860c42b86f7e45a08047c21297b8cc584f9032 Mon Sep 17 00:00:00 2001 From: Condor Hero Date: Sun, 21 Jul 2024 13:27:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E5=A4=8D=E5=BA=A7=E6=9C=BA?= =?UTF-8?q?=E6=AD=A3=E5=88=99=20=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=86=97?= =?UTF-8?q?=E4=BD=99=20(#319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- packages/www/src/RULES.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 006a2c6..857935d 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ vscode应用商店中搜索"**any-rule**". ### 座机(tel phone)电话(国内),如: 0341-86091234 ```javascript -/^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/ +/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/ ``` ### 身份证号(1代,15位数字) diff --git a/packages/www/src/RULES.js b/packages/www/src/RULES.js index dc97d51..b9d18d6 100644 --- a/packages/www/src/RULES.js +++ b/packages/www/src/RULES.js @@ -223,7 +223,7 @@ module.exports = [{ { title: '座机(tel phone)电话(国内),如: 0341-86091234', - rule: /^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/, + rule: /^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/, examples: ['0936-4211235', '89076543', '010-12345678-1234'] },