Skip to content

Commit 1a9c242

Browse files
committed
add additionaly test with variable shorthand modifier
1 parent 2af228e commit 1a9c242

File tree

1 file changed

+7
-2
lines changed
  • crates/oxide/src/extractor/pre_processors

1 file changed

+7
-2
lines changed

crates/oxide/src/extractor/pre_processors/slim.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,16 @@ mod tests {
225225
// Also included an arbitrary value including `(` and `)` to make sure that we don't
226226
// accidentally remove those either.
227227
let input = r#"
228-
body.p-8(class="bg-(--my-color) bg-[url(https://example.com)]")
228+
body.p-8(class="bg-(--my-color) bg-(--my-color)/(--my-opacity) bg-[url(https://example.com)]")
229229
"#;
230230
Slim::test_extract_contains(
231231
input,
232-
vec!["p-8", "bg-(--my-color)", "bg-[url(https://example.com)]"],
232+
vec![
233+
"p-8",
234+
"bg-(--my-color)",
235+
"bg-(--my-color)/(--my-opacity)",
236+
"bg-[url(https://example.com)]",
237+
],
233238
);
234239
}
235240

0 commit comments

Comments
 (0)