chore: only match repo links for GitHub in action

This commit is contained in:
Satyajit Sahoo
2020-11-20 12:03:50 +01:00
committed by GitHub
parent a8e27ef448
commit efcfa7121f

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
}