mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
Merge remote-tracking branch 'origin/develop'
* origin/develop: chore: 更新主页
This commit is contained in:
parent
9b1cf30a88
commit
d080694aa4
164
README.md
164
README.md
@ -1,84 +1,84 @@
|
||||
# 正则大全  [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule)  [](https://circleci.com/gh/any86/any-rule)
|
||||
|
||||
🦕支持**web** / **vscode** / **idea** / **Alfred Workflow**多平台
|
||||
|
||||
## :rocket:web版本
|
||||
https://any86.github.io/any-rule/
|
||||
|
||||
## 🍭vscode插件
|
||||
|
||||
### 安装
|
||||
vscode应用商店中搜索"**any-rule**".
|
||||
|
||||
### 使用
|
||||
**方式1:**
|
||||
|
||||
1. 按**F1**(mac下fn+F1)打开正则列表.
|
||||
2. **输入关键词搜索**, 比如"手机".
|
||||
|
||||

|
||||
|
||||
**方式2:**
|
||||
|
||||
右键选择"🦕正则大全".
|
||||
|
||||

|
||||
|
||||
**方式3:**
|
||||
|
||||
在代码任意位置输入"**@zz**".
|
||||
|
||||
|
||||

|
||||
|
||||
## 👩🏫图解正则
|
||||
<details>
|
||||
<summary>查看详情</summary>
|
||||
每次在any-rule中选择正则后会弹出提示, 可点击"🤖图解正则".
|
||||
|
||||

|
||||
|
||||
点击后可以看到正则解析, 方便大家学习.
|
||||
|
||||

|
||||
|
||||
**注意**: 图解直接使用了https://regexper.com, 在此对作者表示敬意和感谢.
|
||||
</details>
|
||||
|
||||
## 社区版本
|
||||
[idea版](https://github.com/zhoriya)
|
||||
|
||||
[Alfred Workflow版](https://github.com/cccyb/workflows)
|
||||
|
||||
## :fire:关于PR
|
||||
欢迎大家PR, 步骤如下:
|
||||
1. **正则**请在**packages/www/src/RULES.js**中添加.
|
||||
2. 运行`npm run test:rules`进行测试.
|
||||
3. 运行`npm run build:md`更新**README.md**.
|
||||
4. 请务必提交到**develop**分支.
|
||||
|
||||
在此感谢大家对**any-rule**做出的贡献!
|
||||
|
||||
## 👽主要开发者
|
||||
按照加入时间排序
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://github.com/MrTenger"><img width="60" src="https://avatars3.githubusercontent.com/u/10781715?s=60&v=4"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/giraffeComing"><img width="60" src="https://avatars2.githubusercontent.com/u/14800669?s=460&v=4"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/microud"><img width="60" src="https://avatars1.githubusercontent.com/u/10163257?s=60&v=4"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/52cik"><img width="60" src="https://avatars0.githubusercontent.com/u/5033310?s=60&v=4"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## 🍔正则
|
||||
# 正则大全  [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule)  [](https://circleci.com/gh/any86/any-rule)
|
||||
|
||||
🦕支持**web** / **vscode** / **idea** / **Alfred Workflow**多平台
|
||||
|
||||
## :rocket:web版本
|
||||
https://any86.github.io/any-rule/
|
||||
|
||||
## 🍭vscode插件
|
||||
|
||||
### 安装
|
||||
vscode应用商店中搜索"**any-rule**".
|
||||
|
||||
### 使用
|
||||
**方式1:**
|
||||
|
||||
1. 按**F1**(mac下fn+F1)打开正则列表.
|
||||
2. **输入关键词搜索**, 比如"手机".
|
||||
|
||||

|
||||
|
||||
**方式2:**
|
||||
|
||||
右键选择"🦕正则大全".
|
||||
|
||||

|
||||
|
||||
**方式3:**
|
||||
|
||||
在代码任意位置输入"**@zz**".
|
||||
|
||||
|
||||

|
||||
|
||||
## 👩🏫图解正则
|
||||
<details>
|
||||
<summary>查看详情</summary>
|
||||
每次在any-rule中选择正则后会弹出提示, 可点击"🤖图解正则".
|
||||
|
||||

|
||||
|
||||
点击后可以看到正则解析, 方便大家学习.
|
||||
|
||||

|
||||
|
||||
**注意**: 图解直接使用了https://regexper.com, 在此对作者表示敬意和感谢.
|
||||
</details>
|
||||
|
||||
## 社区版本
|
||||
[idea版](https://github.com/zhoriya/idea-rule)
|
||||
|
||||
[Alfred Workflow版](https://github.com/cccyb/workflows)
|
||||
|
||||
## :fire:关于PR
|
||||
欢迎大家PR, 步骤如下:
|
||||
1. **正则**请在**packages/www/src/RULES.js**中添加.
|
||||
2. 运行`npm run test:rules`进行测试.
|
||||
3. 运行`npm run build:md`更新**README.md**.
|
||||
4. 请务必提交到**develop**分支.
|
||||
|
||||
在此感谢大家对**any-rule**做出的贡献!
|
||||
|
||||
## 👽主要开发者
|
||||
按照加入时间排序
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://github.com/MrTenger"><img width="60" src="https://avatars3.githubusercontent.com/u/10781715?s=60&v=4"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/giraffeComing"><img width="60" src="https://avatars2.githubusercontent.com/u/14800669?s=460&v=4"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/microud"><img width="60" src="https://avatars1.githubusercontent.com/u/10163257?s=60&v=4"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/52cik"><img width="60" src="https://avatars0.githubusercontent.com/u/5033310?s=60&v=4"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## 🍔正则
|
||||
|
||||
### 火车车次
|
||||
```javascript
|
||||
@ -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
|
||||
|
@ -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']
|
||||
},
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ vscode应用商店中搜索"**any-rule**".
|
||||
</details>
|
||||
|
||||
## 社区版本
|
||||
[idea版](https://github.com/zhoriya)
|
||||
[idea版](https://github.com/zhoriya/idea-rule)
|
||||
|
||||
[Alfred Workflow版](https://github.com/cccyb/workflows)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user