Skip to content

Commit

Permalink
fix(changelog-parser): support ----- headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed May 3, 2019
1 parent 4a752e0 commit 2f14165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ es
.eslintcache
*.js
*.js.flow
!/src/**/*.js
!/test/**/*.js
!/src/**
!/test/**
!/.babelrc.js
2 changes: 1 addition & 1 deletion src/changelog-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type Release = {
export default function parseChangelog(text: string): { [string]: Release } {
const result = {}
const versionHeaderRx = new RegExp(
`^#+\\s+(${versionRx})(.*)$|^(${versionRx})(.*)(\r\n?|\n)=+`,
`^#+\\s+(${versionRx})(.*)$|^(${versionRx})(.*)(\r\n?|\n)(=+|-+)`,
'mg'
)
let match
Expand Down

0 comments on commit 2f14165

Please sign in to comment.