From f36ebbde1037f602f730f4b460724f7deeb63a0f Mon Sep 17 00:00:00 2001 From: Russell <383514580@qq.com> Date: Wed, 20 Jul 2022 11:22:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++++++- package.json | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32fda19..ef3389d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 正则大全 ![已收录82条](https://img.shields.io/badge/已收录-82条-673ab7.svg) [![版本](https://badgen.net/vs-marketplace/v/russell.any-rule)](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [![安装量](https://badgen.net/vs-marketplace/i/russell.any-rule)](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [![下载量](https://badgen.net/vs-marketplace/d/russell.any-rule)](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) ![MIT](https://img.shields.io/badge/license-MIT-F44336.svg) [![CircleCI](https://badgen.net/github/status/any86/any-rule/master/ci/circleci)](https://circleci.com/gh/any86/any-rule) +# 正则大全 ![已收录83条](https://img.shields.io/badge/已收录-83条-673ab7.svg) [![版本](https://badgen.net/vs-marketplace/v/russell.any-rule)](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [![安装量](https://badgen.net/vs-marketplace/i/russell.any-rule)](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [![下载量](https://badgen.net/vs-marketplace/d/russell.any-rule)](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) ![MIT](https://img.shields.io/badge/license-MIT-F44336.svg) [![CircleCI](https://badgen.net/github/status/any86/any-rule/master/ci/circleci)](https://circleci.com/gh/any86/any-rule) 🦕支持**web** / **vscode** / **idea** / **Alfred Workflow**多平台 @@ -478,3 +478,8 @@ vscode应用商店中搜索"**any-rule**". ```javascript /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/ ``` + +### 域名(非网址, 不包含协议) +```javascript +/^([0-9a-zA-Z-]{1,}\.)+([a-zA-Z]{2,})$/ +``` diff --git a/package.json b/package.json index 48bb214..bd70b28 100644 --- a/package.json +++ b/package.json @@ -401,9 +401,13 @@ "command": "extension.rule81", "title": "$(rocket) zz: email(支持中文邮箱)" }, + { + "command": "extension.rule82", + "title": "$(rocket) zz: 域名(非网址, 不包含协议)" + }, { "command": "extension.rule.callByMenu", - "title": "🦕正则大全(82条)" + "title": "🦕正则大全(83条)" } ] }, @@ -428,4 +432,4 @@ "axios": "^0.19.2", "transliteration": "^2.1.8" } -} +} \ No newline at end of file