From 4fa17e2536ffd0e4bf1f8f9a8310908cf31cf2f1 Mon Sep 17 00:00:00 2001 From: Aleksey Kozhevnikov Date: Wed, 4 Apr 2018 00:07:17 +0300 Subject: [PATCH] Fix single source file in binary predicate Fixing #376 issue. --- lib/slather/profdata_coverage_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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