mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 18:48:12 +08:00
chore: block PR with empty description
This commit is contained in:
@@ -6,8 +6,8 @@ export default async function identify({ github, context, core }, body, number,
|
||||
core.debug(`sender: ${sender}`);
|
||||
core.debug(`body: ${body}`);
|
||||
// Remove all HTML comments before performing the match
|
||||
const bodyNoCmts = body.replaceAll(/<!--[\S\s]*?-->/g, '');
|
||||
const m = bodyNoCmts.match(/```routes\s+([\S\s]*?)```/);
|
||||
const bodyNoCmts = body?.replaceAll(/<!--[\S\s]*?-->/g, '');
|
||||
const m = bodyNoCmts?.match(/```routes\s+([\S\s]*?)```/);
|
||||
core.debug(`match: ${m}`);
|
||||
let routes = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user