We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d67256 commit 2409017Copy full SHA for 2409017
.github/workflows/spam-comment-detection.yaml
@@ -24,7 +24,7 @@ jobs:
24
const issue_number = process.env.ISSUE_NUMBER
25
const owner = process.env.REPO_OWNER
26
const repo = process.env.REPO_NAME
27
- const EXTERNAL_LINK_REGEXT = /https:\/\/(?!((\w+\.)?github\.com|github\.com|(\w+\.)?magickbase\.com|(\w+\.)?nervos\.org))/gi
+ const EXTERNAL_LINK_REGEXT = /https?:\/\/(?!((\w+\.)?github\.com|github\.com|(\w+\.)?magickbase\.com|(\w+\.)?nervos\.org))/gi
28
if (spam_words.some(w => comment.includes(w))) {
29
console.info(`Spam comment: ${comment}`)
30
github.rest.issues.deleteComment({ owner, repo, comment_id })
0 commit comments