mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
fix<utils>: Color Regular Error (#2567)
This commit is contained in:
parent
d88915bac3
commit
d6fdfd9f93
@ -6,7 +6,7 @@
|
||||
* @return Boolean
|
||||
*/
|
||||
export function isHexColor(color: string) {
|
||||
const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/;
|
||||
const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
||||
return reg.test(color);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user