Skip to content

Commit 155be12

Browse files
chore: wip
1 parent 1b1ff35 commit 155be12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/headwind/src/parser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,8 @@ function isValidClassName(name: string, bracketConfig?: BracketSyntaxConfig): bo
13301330
// - - prefix (negative values)
13311331
// - Arbitrary values in brackets like -[100px] or -[#ff0000]
13321332
// - Variant prefixes with colons like hover:, sm:, focus:
1333-
return /^!?-?[a-z][a-z0-9-]*(?:-\[[^\]]+\])?(?::!?-?[a-z][a-z0-9-]*(?:-\[[^\]]+\])?)*$/i.test(name)
1333+
// - Decimal values like py-2.5, gap-0.5
1334+
return /^!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?(?::!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?)*$/i.test(name)
13341335
}
13351336

13361337
/**

0 commit comments

Comments
 (0)