From 86fbaac752da3619f705bb02b839e3c0af9dee23 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Tue, 21 Mar 2023 19:36:19 +0300 Subject: [PATCH] fix: normalize paths --- src/coverage_reporter/file_report.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coverage_reporter/file_report.cr b/src/coverage_reporter/file_report.cr index 8aa77cf1..3a5b1c98 100644 --- a/src/coverage_reporter/file_report.cr +++ b/src/coverage_reporter/file_report.cr @@ -13,7 +13,7 @@ module CoverageReporter def to_h : Hash(Symbol, String | Array(Int64?) | Array(Int64)) { - :name => @name.lstrip(File::SEPARATOR), + :name => Path.new(@name.lstrip(File::SEPARATOR)).normalize.to_s, :coverage => @coverage, :branches => @branches, :source_digest => @source_digest,