diff options
Diffstat (limited to 'src/modules/core/regex.js')
-rw-r--r-- | src/modules/core/regex.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/core/regex.js b/src/modules/core/regex.js index b8adb83..c32ac93 100644 --- a/src/modules/core/regex.js +++ b/src/modules/core/regex.js @@ -17,7 +17,7 @@ export const transforms = /\)\s*,?\s*/ export const whitespace = /\s/g // Test hex value -export const isHex = /^#[a-f0-9]{3,6}$/i +export const isHex = /^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i // Test rgb value export const isRgb = /^rgb\(/ |