Explorar el Código

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

luocong2016 hace 2 años
padre
commit
d6fdfd9f93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 }