Fix CI regex to use PCRE2 mode for non-greedy quantifier support

Agent-Logs-Url: https://github.com/logos-blockchain/lez-programs/sessions/65c1e83e-b757-457f-bd78-2073df6b2c1a

Co-authored-by: 0x-r4bbit <445106+0x-r4bbit@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-22 07:32:34 +00:00 committed by GitHub
parent 07362e29bd
commit 7de156daee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ jobs:
- name: Clippy
run: |
if rg -n -U --multiline '#\[(allow|expect)\([\s\S]*?reason\s*=\s*"(TODO|FIXME|fix later|temporary|hack)' . -g '*.rs' -g '!*/target/*'; then
if rg -n -P -U --multiline '#\[(allow|expect)\([\s\S]*?reason\s*=\s*"(TODO|FIXME|fix later|temporary|hack)' . -g '*.rs' -g '!*/target/*'; then
echo "Found non-actionable lint suppression reason"
exit 1
fi