This commit is contained in:
any86 2020-04-29 13:29:36 +08:00
parent 6ce9975541
commit d9f81e897c
3 changed files with 146 additions and 138 deletions

View File

@ -2,7 +2,7 @@
🦕支持**web** / **vscode** / **idea** 多平台 🦕支持**web** / **vscode** / **idea** 多平台
## 🔥新增idea版本 ## 🔥 2020-04-21 新增idea版本
### 安装 ### 安装
IDEA应用商店中搜索"**any-rule**". IDEA应用商店中搜索"**any-rule**".

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "any-rule", "name": "any-rule",
"version": "0.3.2", "version": "0.3.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -3,7 +3,7 @@
"publisher": "russell", "publisher": "russell",
"displayName": "any-rule", "displayName": "any-rule",
"description": "你要的\"正则\"都在这!", "description": "你要的\"正则\"都在这!",
"version": "0.3.2", "version": "0.3.3",
"scripts": { "scripts": {
"build:md": "node ./scripts/md.js", "build:md": "node ./scripts/md.js",
"build": "npm run test:rules && npm version patch && node ./scripts/genCommond.js && vsce package --yarn && npm run build:md", "build": "npm run test:rules && npm version patch && node ./scripts/genCommond.js && vsce package --yarn && npm run build:md",
@ -70,7 +70,7 @@
}, },
{ {
"command": "extension.rule3", "command": "extension.rule3",
"title": "$(rocket) zz: 网址(支持端口和\"?+参数\"和\"#+参数)" "title": "$(rocket) zz: 网址(url,支持端口和\"?+参数\"和\"#+参数)"
}, },
{ {
"command": "extension.rule4", "command": "extension.rule4",
@ -98,211 +98,219 @@
}, },
{ {
"command": "extension.rule10", "command": "extension.rule10",
"title": "$(rocket) zz: linux\"文件()\"路径" "title": "$(rocket) zz: linux文件夹路径"
}, },
{ {
"command": "extension.rule11", "command": "extension.rule11",
"title": "$(rocket) zz: window\"文件夹\"路径" "title": "$(rocket) zz: linux文件路径"
}, },
{ {
"command": "extension.rule12", "command": "extension.rule12",
"title": "$(rocket) zz: window\"文件\"路径" "title": "$(rocket) zz: window\"文件\"路径"
}, },
{ {
"command": "extension.rule13", "command": "extension.rule13",
"title": "$(rocket) zz: 股票代码(A股)" "title": "$(rocket) zz: window下\"文件\"路径"
}, },
{ {
"command": "extension.rule14", "command": "extension.rule14",
"title": "$(rocket) zz: 大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数" "title": "$(rocket) zz: 股票代码(A股)"
}, },
{ {
"command": "extension.rule15", "command": "extension.rule15",
"title": "$(rocket) zz: html注释" "title": "$(rocket) zz: 大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数"
}, },
{ {
"command": "extension.rule16", "command": "extension.rule16",
"title": "$(rocket) zz: md5格式(32位)" "title": "$(rocket) zz: html注释"
}, },
{ {
"command": "extension.rule17", "command": "extension.rule17",
"title": "$(rocket) zz: 版本号格式必须为X.Y.Z" "title": "$(rocket) zz: md5格式(32位)"
}, },
{ {
"command": "extension.rule18", "command": "extension.rule18",
"title": "$(rocket) zz: 视频链接地址(视频格式可按需增删)" "title": "$(rocket) zz: 版本号(version)格式必须为X.Y.Z"
}, },
{ {
"command": "extension.rule19", "command": "extension.rule19",
"title": "$(rocket) zz: 图片链接地址(图片格式可按需增删)" "title": "$(rocket) zz: 视频(video)链接地址(视频格式可按需增删)"
}, },
{ {
"command": "extension.rule20", "command": "extension.rule20",
"title": "$(rocket) zz: 24小时制时间HH:mm:ss" "title": "$(rocket) zz: 图片(image)链接地址(图片格式可按需增删"
}, },
{ {
"command": "extension.rule21", "command": "extension.rule21",
"title": "$(rocket) zz: 12小时制时间hh:mm:ss" "title": "$(rocket) zz: 24小时制时间HH:mm:ss"
}, },
{ {
"command": "extension.rule22", "command": "extension.rule22",
"title": "$(rocket) zz: base64格式" "title": "$(rocket) zz: 12小时制时间hh:mm:ss"
}, },
{ {
"command": "extension.rule23", "command": "extension.rule23",
"title": "$(rocket) zz: 数字/货币金额(支持负数、千分位分隔符)" "title": "$(rocket) zz: base64格式"
}, },
{ {
"command": "extension.rule24", "command": "extension.rule24",
"title": "$(rocket) zz: 数字/货币金额 (只支持正数、不支持校验千分位分隔符)" "title": "$(rocket) zz: 数字/货币金额(支持负数、千分位分隔符)"
}, },
{ {
"command": "extension.rule25", "command": "extension.rule25",
"title": "$(rocket) zz: 银行卡号10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1)" "title": "$(rocket) zz: 数字/货币金额 (只支持正数、不支持校验千分位分隔符)"
}, },
{ {
"command": "extension.rule26", "command": "extension.rule26",
"title": "$(rocket) zz: 中文姓名" "title": "$(rocket) zz: 银行卡号10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1)"
}, },
{ {
"command": "extension.rule27", "command": "extension.rule27",
"title": "$(rocket) zz: 文姓名" "title": "$(rocket) zz: 文姓名"
}, },
{ {
"command": "extension.rule28", "command": "extension.rule28",
"title": "$(rocket) zz: 车牌号(新能源)" "title": "$(rocket) zz: 英文姓名"
}, },
{ {
"command": "extension.rule29", "command": "extension.rule29",
"title": "$(rocket) zz: 车牌号(新能源)" "title": "$(rocket) zz: 车牌号(新能源)"
}, },
{ {
"command": "extension.rule30", "command": "extension.rule30",
"title": "$(rocket) zz: 车牌号(新能源+非新能源)" "title": "$(rocket) zz: 车牌号(非新能源)"
}, },
{ {
"command": "extension.rule31", "command": "extension.rule31",
"title": "$(rocket) zz: 手机号中国(严谨), 根据工信部2019年最新公布的手机号段" "title": "$(rocket) zz: 车牌号(新能源+非新能源)"
}, },
{ {
"command": "extension.rule32", "command": "extension.rule32",
"title": "$(rocket) zz: 手机号中国(宽松), 只要是13,14,15,16,17,18,19开头即可" "title": "$(rocket) zz: 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段"
}, },
{ {
"command": "extension.rule33", "command": "extension.rule33",
"title": "$(rocket) zz: 手机号中国(宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条" "title": "$(rocket) zz: 手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可"
}, },
{ {
"command": "extension.rule34", "command": "extension.rule34",
"title": "$(rocket) zz: 日期" "title": "$(rocket) zz: 手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条"
}, },
{ {
"command": "extension.rule35", "command": "extension.rule35",
"title": "$(rocket) zz: email(邮箱)" "title": "$(rocket) zz: date(日期)"
}, },
{ {
"command": "extension.rule36", "command": "extension.rule36",
"title": "$(rocket) zz: 座机电话(国内),如: 0341-86091234" "title": "$(rocket) zz: email(邮箱)"
}, },
{ {
"command": "extension.rule37", "command": "extension.rule37",
"title": "$(rocket) zz: 身份证号(1代,15位数字)" "title": "$(rocket) zz: 座机(tel phone)电话(国内),如: 0341-86091234"
}, },
{ {
"command": "extension.rule38", "command": "extension.rule38",
"title": "$(rocket) zz: 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X" "title": "$(rocket) zz: 身份证号(1代,15位数字)"
}, },
{ {
"command": "extension.rule39", "command": "extension.rule39",
"title": "$(rocket) zz: 身份证号, 支持1/2代(15位/18位数字)" "title": "$(rocket) zz: 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X"
}, },
{ {
"command": "extension.rule40", "command": "extension.rule40",
"title": "$(rocket) zz: 护照(包含香港、澳门)" "title": "$(rocket) zz: 身份证号, 支持1/2代(15位/18位数字)"
}, },
{ {
"command": "extension.rule41", "command": "extension.rule41",
"title": "$(rocket) zz: 帐号是否合法(字母开头允许5-16字节允许字母数字下划线组合" "title": "$(rocket) zz: 护照(包含香港、澳门)"
}, },
{ {
"command": "extension.rule42", "command": "extension.rule42",
"title": "$(rocket) zz: 中文/汉字" "title": "$(rocket) zz: 帐号是否合法(字母开头允许5-16字节允许字母数字下划线组合"
}, },
{ {
"command": "extension.rule43", "command": "extension.rule43",
"title": "$(rocket) zz: 小数" "title": "$(rocket) zz: 中文/汉字"
}, },
{ {
"command": "extension.rule44", "command": "extension.rule44",
"title": "$(rocket) zz: " "title": "$(rocket) zz: 数"
}, },
{ {
"command": "extension.rule45", "command": "extension.rule45",
"title": "$(rocket) zz: html标签(宽松匹配)" "title": "$(rocket) zz: 数字"
}, },
{ {
"command": "extension.rule46", "command": "extension.rule46",
"title": "$(rocket) zz: qq号格式正确" "title": "$(rocket) zz: html标签(宽松匹配)"
}, },
{ {
"command": "extension.rule47", "command": "extension.rule47",
"title": "$(rocket) zz: 数字和字母组成" "title": "$(rocket) zz: qq号格式正确"
}, },
{ {
"command": "extension.rule48", "command": "extension.rule48",
"title": "$(rocket) zz: 英文字母" "title": "$(rocket) zz: 数字和字母组成"
}, },
{ {
"command": "extension.rule49", "command": "extension.rule49",
"title": "$(rocket) zz: 小写英文字母组成" "title": "$(rocket) zz: 英文字母"
}, },
{ {
"command": "extension.rule50", "command": "extension.rule50",
"title": "$(rocket) zz: 大写英文字母" "title": "$(rocket) zz: 小写英文字母组成"
}, },
{ {
"command": "extension.rule51", "command": "extension.rule51",
"title": "$(rocket) zz: 密码强度校验最少6位包括至少1个大写字母1个小写字母1个数字1个特殊字符" "title": "$(rocket) zz: 大写英文字母"
}, },
{ {
"command": "extension.rule52", "command": "extension.rule52",
"title": "$(rocket) zz: 用户名校验4到16位字母数字下划线减号" "title": "$(rocket) zz: 密码强度校验最少6位包括至少1个大写字母1个小写字母1个数字1个特殊字符"
}, },
{ {
"command": "extension.rule53", "command": "extension.rule53",
"title": "$(rocket) zz: ip-v4" "title": "$(rocket) zz: 用户名校验4到16位字母数字下划线减号"
}, },
{ {
"command": "extension.rule54", "command": "extension.rule54",
"title": "$(rocket) zz: ip-v6" "title": "$(rocket) zz: ip-v4"
}, },
{ {
"command": "extension.rule55", "command": "extension.rule55",
"title": "$(rocket) zz: 16进制颜色" "title": "$(rocket) zz: ip-v6"
}, },
{ {
"command": "extension.rule56", "command": "extension.rule56",
"title": "$(rocket) zz: 微信号6至20位以字母开头字母数字减号下划线" "title": "$(rocket) zz: 16进制颜色"
}, },
{ {
"command": "extension.rule57", "command": "extension.rule57",
"title": "$(rocket) zz: 邮政编码(中国)" "title": "$(rocket) zz: 微信号(wx)6至20位以字母开头字母数字减号下划线"
}, },
{ {
"command": "extension.rule58", "command": "extension.rule58",
"title": "$(rocket) zz: 中文和数字" "title": "$(rocket) zz: 邮政编码(中国)"
}, },
{ {
"command": "extension.rule59", "command": "extension.rule59",
"title": "$(rocket) zz: 不能包含字母" "title": "$(rocket) zz: 中文和数字"
}, },
{ {
"command": "extension.rule60", "command": "extension.rule60",
"title": "$(rocket) zz: 不能包含字母"
},
{
"command": "extension.rule61",
"title": "$(rocket) zz: java包名" "title": "$(rocket) zz: java包名"
}, },
{
"command": "extension.rule62",
"title": "$(rocket) zz: mac地址"
},
{ {
"command": "extension.rule.callByMenu", "command": "extension.rule.callByMenu",
"title": "🦕正则大全(61条)" "title": "🦕正则大全(63条)"
} }
] ]
}, },