Browse Source

fix<utils>: Color Regular Error (#2567)

pull/2575/head
luocong2016 3 years ago
committed by GitHub
parent
commit
d6fdfd9f93
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/utils/color.ts

2
src/utils/color.ts

@ -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…
Cancel
Save