Skip to content

Commit

Permalink
fix: normalize paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Mar 21, 2023
1 parent 6da585d commit 86fbaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverage_reporter/file_report.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 86fbaac

Please sign in to comment.