We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24eeb69 commit 95d04e3Copy full SHA for 95d04e3
plugins/filters/extractDependabotVersionBump/index.js
@@ -13,8 +13,13 @@ module.exports = (desc) => {
13
if (desc && desc !== '""' && desc !== "''" ) {
14
// Match both "Bumps" and "Updates" patterns with version numbers
15
// The regex captures version numbers that follow "from" and "to" keywords
16
+ let parsedDesc = desc;
17
+ try {
18
+ parsedDesc = JSON.parse(desc);
19
+ } catch (e) {
20
+ // If parsing fails, use the description as is
21
+ }
22
const regex = /(Bumps|Updates).*?from ([\d\.]+[A-Za-zαß]*) to ([\d\.]+[A-Za-zαß]*)/;
- const parsedDesc = JSON.parse(desc);
23
const matches = regex.exec(parsedDesc);
24
if (matches && matches.length == 4) {
25
var [_, action, from, to] = matches;
0 commit comments