From 6931e11987ea46dffbee835cdd1c84e8427e9520 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 15 May 2023 15:47:21 +0800 Subject: [PATCH] =?UTF-8?q?github=20issue=E5=8D=A1=E7=89=87bug=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: github卡片支持issue和pr * fix: issue -> issues --- apps/fun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fun.js b/apps/fun.js index 0403132..afd784c 100644 --- a/apps/fun.js +++ b/apps/fun.js @@ -182,7 +182,7 @@ export class Fun extends plugin { async GH (e) { const api = 'https://opengraph.githubassets.com' - let reg = /github.com\/[a-zA-Z0-9-]{1,39}\/[a-zA-Z0-9_-]{1,100}(?:\/(?:pull|issue)\/\d+)?/ + let reg = /github.com\/[a-zA-Z0-9-]{1,39}\/[a-zA-Z0-9_-]{1,100}(?:\/(?:pull|issues)\/\d+)?/ const isMatched = e.msg.match(reg) const id = 'Yenai'