未验证 提交 d6fdfd9f 编写于 作者: qq_25847755's avatar qq_25847755 提交者: GitHub

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

上级 d88915ba
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册