Skip to content

Commit 5ffa218

Browse files
committed
add-release-notes: really allow for patch-level versions
In b08d4fc (add-release-note: allow for Git for Windows patch-level versions, 2023-01-11), one regular expression we adapted, but "the other one" was missed. This commit is best viewed with `--color-words="[A-Za-z0-9_]+|."`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 699b41d commit 5ffa218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-release-note.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const addReleaseNote = (type, message) => {
2525
const path = `${__dirname}/ReleaseNotes.md`
2626
const contents = fs.readFileSync(path)
2727

28-
const entries = contents.toString().split(/(\n## Changes since Git for Windows v)(\d+(?:\.\d+)*)( \()([A-Z][a-z]+ \d+[a-z]* \d{4})(\))/g)
28+
const entries = contents.toString().split(/(\n## Changes since Git for Windows v)(\d+(?:\.\d+)*(?:\(\d+\))?)( \()([A-Z][a-z]+ \d+[a-z]* \d{4})(\))/g)
2929
const [, currentVersion, currentDate ] = entries[0].match(/^# Git for Windows v(\d+(?:\.\d+)*(?:\(\d+\))?) Release Notes\nLatest update: ([A-Z][a-z]+ \d+[a-z]* \d{4})/)
3030
const latestVersion = entries[2]
3131
const latestDate = entries[4]

0 commit comments

Comments
 (0)