fix(workflow): Fix regexp error when commit via vscode (#9805)

Signed-off-by: MisLink <gjq.uoiai@outlook.com>
This commit is contained in:
MisLink
2022-05-23 03:37:19 +08:00
committed by GitHub
parent b5271168f9
commit 739cf602f3
+1 -1
View File
@@ -4,7 +4,7 @@ const whiteListedUser = ['dependabot[bot]', 'pull[bot]']; // dependabot and down
module.exports = async ({ github, context, core }, body, number, sender) => {
core.debug(`sender: ${sender}`);
core.debug(`body: ${body}`);
const m = body.match(/```routes\r\n((.|\r\n)*)```/);
const m = body.match(/```routes(?:\n|\r\n)((.|\n|\r\n)*)```/);
core.debug(`match: ${m}`);
let res = null;