diff --git a/.gitattributes b/.gitattributes index 126a308..465c87a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -packages/* linguist-vendored \ No newline at end of file +packages/*/** linguist-vendored \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 630ebaa..76029ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # 更新日志 🚀 [提交问题](https://github.com/any86/any-rule/issues/new) +### 0.3.9(2021-04-20) +- 新增"GUID/UUID"正则. +- 修复ip中的"."没有被转义. + + ### 0.3.8(2021-01-17) - 优化一些冗余的正则拼写 - 修复新能源汽车不匹配第三位为字母的情况. diff --git a/packages/www/src/RULES.js b/packages/www/src/RULES.js index d0b2367..cbd3d94 100644 --- a/packages/www/src/RULES.js +++ b/packages/www/src/RULES.js @@ -98,7 +98,7 @@ module.exports = [{ examples: ['21fe181c5bfc16306a6828c1f7b762e8'], }, { - title: 'GUID(Globally Unique Identifier 全球唯一标识符) / UUID(Universally Unique IDentifier)', + title: 'GUID/UUID', rule: /^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i, examples: ['e155518c-ca1b-443c-9be9-fe90fdab7345', '41E3DAF5-6E37-4BCC-9F8E-0D9521E2AA8D', '00000000-0000-0000-0000-000000000000'], },