Skip to content

Commit

Permalink
infra[patch]: Fix comment regex (#6637)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Aug 26, 2024
1 parent 10b9654 commit 1a95392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/spam-comment-filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
id: regex_check
run: |
REGEX='^download\s+(?:https?:\/\/)?[\w-]+(\.[\w-]+)+[^\s]+\s+password:\s*.+\s+in the installer menu, select\s*.+$'
if echo "${{ github.event.comment.body }}" | grep -qiE "$REGEX"; then
if echo "${{ github.event.comment.body }}" | tr '\n' ' ' | grep -qiP "$REGEX"; then
echo "REGEX_MATCHED=true" >> $GITHUB_OUTPUT
else
echo "REGEX_MATCHED=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1a95392

Please sign in to comment.