We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32d079 commit 2b49753Copy full SHA for 2b49753
packages/lib/utils/schema/validate.js
@@ -32,7 +32,7 @@ function createAjvInstance() {
32
ajvInstance.addFormat(
33
'color',
34
// eslint-disable-next-line max-len
35
- /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgba?|hlsa?)\(.*\))$/
+ /^(#?([0-9A-Fa-f]{3,4}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgba?|hsla?)\(.*\))$/
36
);
37
return ajvInstance;
38
}
0 commit comments