release-it / keep-a-changelog

Keep a Changelog plugin for release-it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails if change log uses \r\n for new lines

mattheyan opened this issue Β· comments

First off, I'm a Windows user... πŸ˜„

I got the Missing "Unreleased" section in CHANGELOG.md. error even though my change log does have an "Unreleased" section. I changed newlines in my change log from \r\n to \n, and this got me past the error. But, since people are using the autocrlf setting, I don't think this would be a workable long-term solution.

Seems like the test could easily be changed to use regular expressions (i.e. \r?\n). What do you think?

Agreed, I'll try and fix it shortly

Released in v1.1.1