chore: only match repo links for GitHub in action

This commit is contained in:
Satyajit Sahoo
2020-11-20 12:03:50 +01:00
parent 15e5678037
commit b0416957bc

View File

@@ -17,7 +17,7 @@ jobs:
? context.payload.comment.body
: context.payload.issue.body
if (!/https?:\/\/((github\.com\/[^/]+\/[^/]+)|(snack\.expo\.io\/.+))/gm.test(body)) {
if (!/https?:\/\/((github\.com\/[^/]+\/[^/]+\/?[\s\n]+)|(snack\.expo\.io\/.+))/gm.test(body)) {
return
}