Commit d6fdfd9f93fe425158a63f5c99dc1fa0244705ef

Authored by luocong2016
Committed by GitHub
1 parent d88915ba

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

Showing 1 changed file with 1 additions and 1 deletions
src/utils/color.ts
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 * @return Boolean 6 * @return Boolean
7 */ 7 */
8 export function isHexColor(color: string) { 8 export function isHexColor(color: string) {
9 - const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/; 9 + const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
10 return reg.test(color); 10 return reg.test(color);
11 } 11 }
12 12