(version: string)
| 34 | |
| 35 | /** 判断版本号格式是否为 X.Y.Z */ |
| 36 | export const isVersion = (version: string) => { |
| 37 | const reg = /^\d+(?:\.\d+){2}$/ |
| 38 | return reg.test(version) |
| 39 | } |
| 40 | |
| 41 | /** 判断时间格式是否为 24 小时制(HH:mm:ss) */ |
| 42 | export const is24H = (time: string) => { |
nothing calls this directly
no outgoing calls
no test coverage detected