Skip to content

Commit 3785060

Browse files
committed
fix ship.config.js
1 parent a1788c0 commit 3785060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ship.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function extractSpecificChangelog (changelog, version) {
1111
}
1212
const escapedVersion = version.replace(/\./g, '\\.')
1313
const regex = new RegExp(
14-
`(#+?\\s\\[?v?${escapedVersion}\\]?[\\s\\S]*?)(#+?\\s\\[?v?\\d\\.\\d\\.\\d\\]?)`,
14+
`(#+?\\s\\[?v?${escapedVersion}\\]?[\\s\\S]*?)(#+?\\s\\[?v?\\d+?\\.\\d+?\\.\\d+?\\]?)`,
1515
'g'
1616
)
1717
const matches = regex.exec(changelog)

0 commit comments

Comments
 (0)