From 739cf602f3d936ee14d31652833d05dc9fa0a52d Mon Sep 17 00:00:00 2001 From: MisLink Date: Mon, 23 May 2022 03:37:19 +0800 Subject: [PATCH] fix(workflow): Fix regexp error when commit via vscode (#9805) Signed-off-by: MisLink --- scripts/workflow/test-route/identify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/workflow/test-route/identify.js b/scripts/workflow/test-route/identify.js index c2b30a774c..70a51515ad 100644 --- a/scripts/workflow/test-route/identify.js +++ b/scripts/workflow/test-route/identify.js @@ -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;