Skip to content

Commit

Permalink
allow Unreleased without brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasvanEyk committed Jul 1, 2023
1 parent 6ab0444 commit e6111cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/changelog/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ func Parse(source []byte) Changelog {
Stop: r.HeadlineBounds.Stop, // This will be incremented later
}
currentRelease = &r
currentReleaseIsNextRelease = string(heading.Text(source)) == "[Unreleased]"
text := string(heading.Text(source))
currentReleaseIsNextRelease = text == "[Unreleased]" || text == "Unreleased"
}

if heading.Level == 3 && entering {
Expand Down

0 comments on commit e6111cd

Please sign in to comment.