Skip to content

Commit

Permalink
Merge pull request #36 from yashanand1910/feat/version-style
Browse files Browse the repository at this point in the history
feat: add support for versions like [vX.Y.Z]
  • Loading branch information
yashanand1910 authored Apr 9, 2024
2 parents a0d98a6 + 1153891 commit 5697ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,7 @@ const extractReleaseNotes = (content, version) => {

version = version.replace(/^v/, '');
const regExp = new RegExp(
`## v?\\[?${version}[^\\n]*\\n(.*?)(\\n##\\s|\\n### \\[?[0-9]+\\.|($(?![\r\n])))`,
`## v?\\[?v?${version}[^\\n]*\\n(.*?)(\\n##\\s|\\n### \\[?[0-9]+\\.|($(?![\r\n])))`,
'ms'
);
const match = content.match(regExp);
Expand Down
2 changes: 1 addition & 1 deletion src/release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const extractReleaseNotes = (content, version) => {

version = version.replace(/^v/, '');
const regExp = new RegExp(
`## v?\\[?${version}[^\\n]*\\n(.*?)(\\n##\\s|\\n### \\[?[0-9]+\\.|($(?![\r\n])))`,
`## v?\\[?v?${version}[^\\n]*\\n(.*?)(\\n##\\s|\\n### \\[?[0-9]+\\.|($(?![\r\n])))`,
'ms'
);
const match = content.match(regExp);
Expand Down

0 comments on commit 5697ef2

Please sign in to comment.