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)