Skip to content

Commit 3dd46c2

Browse files
committed
add failing test
1 parent cdecb55 commit 3dd46c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crates/oxide/tests/scanner.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,21 @@ mod scanner {
311311
assert_eq!(normalized_sources, vec!["**/*"]);
312312
}
313313

314+
// https://github.com/tailwindlabs/tailwindcss/issues/17569
315+
#[test]
316+
fn it_should_not_ignore_folders_that_end_with_a_binary_extension() {
317+
let ScanResult {
318+
files,
319+
globs,
320+
normalized_sources,
321+
..
322+
} = scan(&[("some.pages/index.html", "content-['some.pages/index.html']")]);
323+
324+
assert_eq!(files, vec!["some.pages/index.html"]);
325+
assert_eq!(globs, vec!["*", "some.pages/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}"]);
326+
assert_eq!(normalized_sources, vec!["**/*"]);
327+
}
328+
314329
#[test]
315330
fn it_should_ignore_known_extensions() {
316331
let ScanResult {

0 commit comments

Comments
 (0)