mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
chore(docs): 更新文档和文档脚本
This commit is contained in:
parent
594ca4bc19
commit
47bbc7c58b
15
README.md
15
README.md
@ -1,4 +1,4 @@
|
||||
# 正则大全  [](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)
|
||||
# 正则大全  [](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)
|
||||
|
||||
支持**图形界面** / **vscode插件**2种查询方式.
|
||||
|
||||
@ -14,7 +14,13 @@ https://any86.github.io/any-rule/
|
||||

|
||||
|
||||
## :fire:关于PR
|
||||
欢迎大家PR, 提交**正则**请在**packages/www/src/RULES.js**中添加, **README.md**无需修改, 我合并后会通过脚本自动更新文档. 在此感谢大家对**any-rule**做出的贡献!
|
||||
欢迎大家PR, 步骤如下:
|
||||
1. **正则**请在**packages/www/src/RULES.js**中添加.
|
||||
2. 运行`npm run test:rules`进行测试.
|
||||
3. 运行`npm run build:md`更新**README.md**.
|
||||
4. 请务必提交到**develop**分支.
|
||||
|
||||
在此感谢大家对**any-rule**做出的贡献!
|
||||
|
||||
## 🍔正则
|
||||
|
||||
@ -128,11 +134,6 @@ https://any86.github.io/any-rule/
|
||||
/(?:^[-]?[1-9]\d{0,2}(?:$|(?:,\d{3})*(?:$|(\.\d{1,2}$))))|(?:(?:^[0](\.\d{1,2})?)|(?:^[-][0]\.\d{1,2}))$/
|
||||
```
|
||||
|
||||
### 数字千分位分隔符
|
||||
```javascript
|
||||
/^(\-|\+)?\d+(\.\d+)?$/
|
||||
```
|
||||
|
||||
### 数字/货币金额 (只支持正数、不支持校验千分位分隔符)
|
||||
```javascript
|
||||
/(?:^[1-9]([0-9]+)?(?:\.[0-9]{1,2})?$)|(?:^(?:0){1}$)|(?:^[0-9]\.[0-9](?:[0-9])?$)/
|
||||
|
@ -35,7 +35,13 @@ https://any86.github.io/any-rule/
|
||||

|
||||
|
||||
## :fire:关于PR
|
||||
欢迎大家PR, 提交**正则**请在**packages/www/src/RULES.js**中添加, **README.md**无需修改, 我合并后会通过脚本自动更新文档. 在此感谢大家对**any-rule**做出的贡献!
|
||||
欢迎大家PR, 步骤如下:
|
||||
1. **正则**请在**packages/www/src/RULES.js**中添加.
|
||||
2. 运行\`npm run test:rules\`进行测试.
|
||||
3. 运行\`npm run build:md\`更新**README.md**.
|
||||
4. 请务必提交到**develop**分支.
|
||||
|
||||
在此感谢大家对**any-rule**做出的贡献!
|
||||
|
||||
## 🍔正则
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user