release-it / keep-a-changelog

Keep a Changelog plugin for release-it
MIT License
27 stars 15 forks source link

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

Closed mattheyan closed 4 years ago

mattheyan commented 4 years ago

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?

webpro commented 4 years ago

Agreed, I'll try and fix it shortly

webpro commented 4 years ago

Released in v1.1.1