Skip to content

Commit

Permalink
Allow for %sreverse%s
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Sep 9, 2024
1 parent dcc0c0a commit 0a3288f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/spelling/candidate.patterns
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ content: (['"])[-a-zA-Z=;:/0-9+]*=\g{-1}

# Alternative printf
# %s
%(?:s(?=[a-z]{2,}))(?!%)(?=[_a-zA-Z]+(?!%)\b)(?=.*?['"])
%(?:s(?=[a-z]{2,}))(?!%)(?=[_a-zA-Z]+(?!%[^s])\b)(?=.*?['"])

# Python string prefix / binary prefix
# Note that there's a high false positive rate, remove the `?=` and search for the regex to see if the matches seem like reasonable strings
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ jobs:
if: ${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '@check-spelling-bot apply')
contains(github.event.comment.body, '@check-spelling-bot apply') &&
contains(github.event.comment.body, 'https://')
}}
concurrency:
group: spelling-update-${{ github.event.issue.number }}
Expand Down

0 comments on commit 0a3288f

Please sign in to comment.