diff --git a/lib/slather/profdata_coverage_file.rb b/lib/slather/profdata_coverage_file.rb index e485bb09..366a42ea 100644 --- a/lib/slather/profdata_coverage_file.rb +++ b/lib/slather/profdata_coverage_file.rb @@ -27,7 +27,7 @@ def create_line_data def path_on_first_line? path = self.source.split("\n")[0].sub ":", "" - !path.include?("|//") + !path.lstrip.start_with?("1|") end def source_file_pathname