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 8daac7f commit dc6a66eCopy full SHA for dc6a66e
src/lib/validators.ts
@@ -2,7 +2,7 @@ const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i
2
const fractionRegex = /^\d+\/\d+$/
3
const stringLengths = new Set(['px', 'full', 'screen'])
4
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/
5
-const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/
+const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))/
6
// Shadow always begins with x and y offset separated by underscore
7
const shadowRegex = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/
8
0 commit comments