From cbfeb1b77c63c5b645d0bd55ebf97e6eb0a7410f Mon Sep 17 00:00:00 2001 From: Nicolas Hedger Date: Sun, 17 Sep 2023 16:07:46 +0200 Subject: [PATCH] biome: improve version test --- Formula/b/biome.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/b/biome.rb b/Formula/b/biome.rb index 7fb99f91c4886..1060872f9ee85 100644 --- a/Formula/b/biome.rb +++ b/Formula/b/biome.rb @@ -33,6 +33,6 @@ def install system bin/"biome", "format", "--semicolons=always", "--write", testpath/"test.js" assert_match "const x = 1;", (testpath/"test.js").read - assert_match version.to_s, shell_output("#{bin}/biome --version", 1) + assert_match(/cli:\s*#{Regexp.quote(version.to_s)}/i, shell_output("#{bin}/biome version")) end end