Skip to content

Commit

Permalink
Correct regex when message starts with [SECURITY]
Browse files Browse the repository at this point in the history
Doesn't need to start at the beginning of the line.
  • Loading branch information
mAAdhaTTah committed Jul 3, 2021
1 parent ea2d53e commit 22d3cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const cherryPickPR = async (
}
};

const SHORT_MSG_REGEX = /^Bump ([\w-@\/]+) from ([\w\.-]+) to ([\w\.-]+)/;
const SHORT_MSG_REGEX = /Bump ([\w-@\/]+) from ([\w\.-]+) to ([\w\.-]+)/;
const PKG_MANAGER_REGEX = /dependabot\/([\w-]+)/;
const EXTRACT_FROM_REGEX = /^\-(.*)$/m;
const EXTRACT_TO_REGEX = /^\+(.*)$/m;
Expand Down

0 comments on commit 22d3cb1

Please sign in to comment.