Skip to content

Commit 78169ba

Browse files
committed
[INTERNAL] consolidate-changelogs: Fix parsing pre-releases
The regular expression did not match pre-releases as it only checked for numbers and dots. The expression now just matches everything until the next space, which should work for all kind of version specifiers as they never include a space. The template uses a space after the subject (commit message).
1 parent 735bad8 commit 78169ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.chglog/consolidate-changelogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require("fs");
44

55
function handleDependencyBump(line) {
66
line = line.replace("[@ui5](https://github.com/ui5)", "@ui5");
7-
const moduleMatch = line.match(/Bump (@ui5\/[^\s]+).*to ([0-9.]+)/);
7+
const moduleMatch = line.match(/Bump (@ui5\/[^\s]+).*to ([^ ]+)/);
88
if (moduleMatch) {
99
const [, moduleName, moduleVersion] = moduleMatch;
1010
const moduleDir = path.dirname(require.resolve(moduleName));

0 commit comments

Comments
 (0)