github issue卡片bug (#50)

* feat: github卡片支持issue和pr

* fix: issue -> issues
This commit is contained in:
ikechan8370
2023-05-15 15:47:21 +08:00
committed by GitHub
parent 0775f553c8
commit 6931e11987

View File

@@ -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'