mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix: 修改时间格式修饰连接符
This commit is contained in:
parent
5bf649ccd4
commit
912b20f585
@ -1,12 +1,12 @@
|
|||||||
# 正则大全
|
# 正则大全
|
||||||
图形界面: https://any86.github.io/any-rule/
|
图形界面: https://any86.github.io/any-rule/
|
||||||
|
|
||||||
## 24小时制时间(HH-mm-ss)
|
## 24小时制时间(HH:mm:ss)
|
||||||
```javascript
|
```javascript
|
||||||
/^((?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$)/
|
/^((?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$)/
|
||||||
```
|
```
|
||||||
|
|
||||||
## 12小时制时间(hh-mm-ss)
|
## 12小时制时间(hh:mm:ss)
|
||||||
```javascript
|
```javascript
|
||||||
/^(1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/
|
/^(1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/
|
||||||
```
|
```
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
module.exports = [{
|
module.exports = [{
|
||||||
title: '24小时制时间(HH-mm-ss)',
|
title: '24小时制时间(HH:mm:ss)',
|
||||||
rule: /^((?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$)/
|
rule: /^((?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$)/
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '12小时制时间(hh-mm-ss)',
|
title: '12小时制时间(hh:mm:ss)',
|
||||||
rule: /^(1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/
|
rule: /^(1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user