Skip to content

Commit

Permalink
Ignore single-line block comments. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-gh committed Oct 15, 2017
1 parent 76addc9 commit bf08085
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class PreparedCommentHeader implements PreparedHeader {

// If the first line doesn't match the comment start we're done
// and the file doesn't have a license header yet
if (!(line =~ format.start)) {
if (!(line =~ format.start) || (format.end && line =~ format.end)) {
last = line
text = reader.text
return
Expand Down

0 comments on commit bf08085

Please sign in to comment.