Skip to content

Commit

Permalink
source-maintenance.sh: Fix checkMakeNamedErrorDetails on MacOS (#1885)
Browse files Browse the repository at this point in the history
    'MakeNamedErrorDetail....*?...': repetition-operator operand invalid

"git grep --extended-regexp" does not support non-greedy sequences on
MacOS. Use an equivalent greedy sequence instead.
  • Loading branch information
kinkie authored and squid-anubis committed Aug 19, 2024
1 parent b8a3f05 commit e0f0304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/source-maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ checkMakeNamedErrorDetails ()
problems=1 # assume there are problems until proven otherwise

options='-h --only-matching --extended-regexp'
git grep $options 'MakeNamedErrorDetail[(]".*?"[)]' src |
git grep $options 'MakeNamedErrorDetail[(]"[^"]*"[)]' src |
sort |
uniq --count > \
MakeNamedErrorDetail.tmp
Expand Down

0 comments on commit e0f0304

Please sign in to comment.