color editing
This commit is contained in:
4
shared/utils/color.js
Normal file
4
shared/utils/color.js
Normal file
@ -0,0 +1,4 @@
|
||||
// @flow
|
||||
|
||||
export const validateColorHex = (color: string) =>
|
||||
/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(color);
|
Reference in New Issue
Block a user