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 authored and ctron committed Dec 12, 2023
1 parent c2be116 commit dcd0416
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 @@ -651,6 +651,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 dcd0416

Please sign in to comment.