Skip to content

Commit dbdd7d1

Browse files
committed
fix the case of 'end_of_record' appearing elsewhere
1 parent 80d0395 commit dbdd7d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ var walkFile = function(str, cb) {
7878
break;
7979
}
8080

81-
if (line.indexOf('end_of_record') > -1) {
81+
// compare the line precisely, as 'end_of_record' may appear in
82+
// function names and filenames (real story)
83+
if (line.trim() === 'end_of_record') {
8284
data.push(item);
8385
item = {
8486
lines: {

0 commit comments

Comments
 (0)