feat: 增加大于0小于150判断

This commit is contained in:
宁宁 2019-07-12 13:45:52 +08:00
parent 46b317f8c6
commit 8525f69bb1
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,12 @@
# 正则大全 ![](https://img.shields.io/badge/状态-积极更新-673ab7.svg) ![](https://img.shields.io/badge/已收录-47条-4caf50.svg) ![](https://img.shields.io/badge/license-MIT-F44336.svg)
# 正则大全 ![](https://img.shields.io/badge/状态-积极更新-673ab7.svg) ![](https://img.shields.io/badge/已收录-48条-4caf50.svg) ![](https://img.shields.io/badge/license-MIT-F44336.svg)
:whale:图形界面: https://any86.github.io/any-rule/
## 大于0, 小于150, 支持小数位出现5, 如果145.5, 用于判断考卷分数
```javascript
/^150$|(^\d|^\d{2}|^\d[0-4]\d)(\.5)?$/
```
## html注释
```javascript
/<!--(.*?)-->$/

View File

@ -1,4 +1,9 @@
module.exports = [
{
title: '大于0, 小于150, 支持小数位出现5, 如果145.5, 用于判断考卷分数',
rule: /^150$|(^\d|^\d{2}|^\d[0-4]\d)(\.5)?$/,
example: '150, 100.5'
},
{
title: 'html注释',
rule: /<!--(.*?)-->$/,