Skip to content

Commit

Permalink
Fix version matching for sass compiled with dart2js
Browse files Browse the repository at this point in the history
  • Loading branch information
lelgenio committed Oct 29, 2023
1 parent 7a27876 commit c1374a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Application {
let text = text.trim();
let formatted_version = match self {
Application::Sass => text
.lines()
.split_whitespace()
.next()
.with_context(|| format!("missing or malformed version output: {}", text))?
.to_owned(),
Expand Down Expand Up @@ -619,6 +619,7 @@ mod tests {
);

table_test_format_version!(sass_pre_compiled, Application::Sass, "1.37.5", "1.37.5");
table_test_format_version!(sass_pre_compiled_dart2js, Application::Sass, "1.37.5 compiled with dart2js 2.18.4", "1.37.5");
table_test_format_version!(
tailwindcss_pre_compiled,
Application::TailwindCss,
Expand Down

0 comments on commit c1374a6

Please sign in to comment.