Closed RobinMalfait closed 1 day ago
This PR makes the candidate parser more strict by not allowing empty arbitrary values.
Examples that are not allowed anymore:
bg-[]
bg-()
bg-[length:]
bg-(length:)
bg-red-500/[]
bg-red-500/()
data-[]:flex
data-():flex
group-visible/[]:flex
group-visible/():flex
If you are trying to trick the parser by injecting some spaces like this:
bg-[_]
Then that is also not allowed.
This PR makes the candidate parser more strict by not allowing empty arbitrary values.
Examples that are not allowed anymore:
bg-[]
— arbitrary valuebg-()
— arbitrary value, var shorthandbg-[length:]
— arbitrary value, with typehintbg-(length:)
— arbitrary value, with typehint, var shorthandbg-red-500/[]
— arbitrary modifierbg-red-500/()
— arbitrary modifier, var shorthanddata-[]:flex
— arbitrary value for variantdata-():flex
— arbitrary value for variant, var shorthandgroup-visible/[]:flex
— arbitrary modifier for variantgroup-visible/():flex
— arbitrary modifier for variant, var shorthandIf you are trying to trick the parser by injecting some spaces like this:
bg-[_]
Then that is also not allowed.