diff --git a/src/utils/color.ts b/src/utils/color.ts index 67a6b5624..3c0ca5e63 100644 --- a/src/utils/color.ts +++ b/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); }