Skip to content

Commit

Permalink
adjust static utility name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jan 8, 2025
1 parent 2a86f08 commit 9a3d16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { replaceShadowColors } from './utils/replace-shadow-colors'
import { segment } from './utils/segment'
import * as ValueParser from './value-parser'

const IS_VALID_STATIC_UTILITY_NAME = /^[a-z][a-zA-Z0-9/%._-]*$/
const IS_VALID_STATIC_UTILITY_NAME = /^-?[a-z][a-zA-Z0-9/%._-]*$/
const IS_VALID_FUNCTIONAL_UTILITY_NAME = /^-?[a-z][a-zA-Z0-9/%._-]*-\*$/

type CompileFn<T extends Candidate['kind']> = (
Expand Down

0 comments on commit 9a3d16f

Please sign in to comment.