Skip to content

Commit b87ddbd

Browse files
authored
Merge pull request #388 from capistrano/fix-dangerfile
Fix overly-strict regex for Danger changelog check
2 parents 0fa61c0 + 8109d8a commit b87ddbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dangerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
# Did you remove the CHANGELOG's "Your contribution here!" line?
4646
# ------------------------------------------------------------------------------
4747
if has_changelog_changes
48-
unless IO.read("CHANGELOG.md") =~ /^\* Your contribution here/i
48+
unless IO.read("CHANGELOG.md") =~ /^\s*\* Your contribution here/i
4949
fail(
5050
"Please put the `* Your contribution here!` line back into CHANGELOG.md.",
5151
:sticky => false

0 commit comments

Comments
 (0)