fix: 修复16进制颜色无法匹配带 alpha 值的问题

fix #273
This commit is contained in:
thelostword 2022-11-23 12:21:08 +08:00
parent 65a2282e82
commit e62146d1c6
2 changed files with 3 additions and 3 deletions

View File

@ -376,7 +376,7 @@ vscode应用商店中搜索"**any-rule**".
### 16进制颜色
```javascript
/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3}|[a-fA-F0-9]{9})$/
```
### 微信号(wx)6至20位以字母开头字母数字减号下划线

View File

@ -327,8 +327,8 @@ module.exports = [{
},
{
title: '16进制颜色',
rule: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,
examples: ['#f00', '#F90', '#000', '#fe9de8']
rule: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3}|[a-fA-F0-9]{9})$/,
examples: ['#f00', '#F90', '#000', '#fe9de8', '#f8f8f8ff']
},
{
title: '微信号(wx)6至20位以字母开头字母数字减号下划线',