lib/codeowners/checker/group/group_begin_comment.rb in codeowners-checker-1.0.3 vs lib/codeowners/checker/group/group_begin_comment.rb in codeowners-checker-1.0.4
- old
+ new
@@ -7,10 +7,10 @@
class Group
# Define line type GroupBeginComment which is used for defining the beggining
# of a group.
class GroupBeginComment < Comment
def self.match?(line)
- line.lstrip.start_with?(/^#+ BEGIN/)
+ line.lstrip =~ /^#+ BEGIN/
end
end
end
end
end