Sha256: 4f075872cd23fb829146e5580160fbe196329ec37e654096682ba90534310ecc
Contents?: true
Size: 365 Bytes
Versions: 2
Compression:
Stored size: 365 Bytes
Contents
module Danger module Changelog # A CHANGELOG.md line represents the version header. class ChangelogHeaderLine < ChangelogLine def valid? ChangelogHeaderLine.validates_as_changelog_line?(line) end def self.validates_as_changelog_line?(line) return true if line =~ /^\#{1,4}\s.+/ false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-changelog-0.3.0 | lib/changelog/changelog_line/changelog_header_line.rb |
danger-changelog-0.2.1 | lib/changelog/changelog_line/changelog_header_line.rb |