From b5d4dea6e77919918dc2852a62e2595e0b7f5d56 Mon Sep 17 00:00:00 2001 From: any86 <383514580@qq.com> Date: Wed, 10 Jun 2020 10:45:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- packages/www/src/RULES.js | 2 +- scripts/md.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4a07325..8b54e79 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ vscode应用商店中搜索"**any-rule**". ## 社区版本 -[idea版](https://github.com/zhoriya) +[idea版](https://github.com/zhoriya/idea-rule) [Alfred Workflow版](https://github.com/cccyb/workflows) @@ -262,7 +262,7 @@ vscode应用商店中搜索"**any-rule**". ### email(邮箱) ```javascript -/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ +/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ ``` ### 座机(tel phone)电话(国内),如: 0341-86091234 diff --git a/packages/www/src/RULES.js b/packages/www/src/RULES.js index 34802eb..d81adb6 100644 --- a/packages/www/src/RULES.js +++ b/packages/www/src/RULES.js @@ -186,7 +186,7 @@ module.exports = [{ }, { title: 'email(邮箱)', - rule: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, + rule: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, examples: ['90203918@qq.com', 'nbilly@126.com'] }, { diff --git a/scripts/md.js b/scripts/md.js index 66879f2..34dfe6f 100644 --- a/scripts/md.js +++ b/scripts/md.js @@ -70,7 +70,7 @@ vscode应用商店中搜索"**any-rule**". ## 社区版本 -[idea版](https://github.com/zhoriya) +[idea版](https://github.com/zhoriya/idea-rule) [Alfred Workflow版](https://github.com/cccyb/workflows)