Browse Source

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

luocong2016 2 năm trước cách đây
mục cha
commit
d6fdfd9f93
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/utils/color.ts

+ 1 - 1
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);
 }