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 e8cb5a2 commit 65bd950Copy full SHA for 65bd950
src/lib/validators.ts
@@ -1,7 +1,7 @@
1
const arbitraryValueRegex = /^\[(.+)\]$/
2
const fractionRegex = /^\d+\/\d+$/
3
const stringLengths = new Set(['px', 'full', 'screen'])
4
-const tshirtUnitRegex = /^(\d+)?(xs|sm|md|lg|xl)$/
+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)/
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)/
0 commit comments