Skip to content

Commit 2a9a4f7

Browse files
committed
add 2 more test cases
These are the ones that represent the linked issue even though we have a dedicated regrression test for it.
1 parent 3c7683a commit 2a9a4f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/tailwindcss/src/utilities.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27220,6 +27220,7 @@ describe('custom utilities', () => {
2722027220
['foo-sm/8', true], // Bare value with number modifier
2722127221
['foo-4/snug', true], // Bare value with named modifier
2722227222
['foo_', true], // This is supported today, so let's not break it
27223+
['foo/bar', true], // A slash to separate the modifier is valid.
2722327224

2722427225
['Foo', false], // Starting with uppercase letter is invalid
2722527226
['-Foo', false], // Starting with uppercase letter is invalid (negative)
@@ -27229,6 +27230,7 @@ describe('custom utilities', () => {
2722927230
['foo.bar', false], // Dots are only valid when surrounded by numbers
2723027231
['foo-1..5', false], // Double dots are invalid
2723127232
['foo..bar', false], // Double dots are invalid definitely without numbers
27233+
['foo/bar/baz', false], // Multiple slashes are invalid
2723227234
])('valid static utility name "%s" (%s)', (name, valid) => {
2723327235
expect(isValidStaticUtilityName(name)).toBe(valid)
2723427236
})

0 commit comments

Comments
 (0)