From ff6bad66fdf5573bdc60b032a27d97653dc8746e Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sat, 17 Aug 2024 12:25:53 +0000 Subject: [PATCH] source-maintenance.sh: Fix checkMakeNamedErrorDetails on MacOS (#1885) 'MakeNamedErrorDetail....*?...': repetition-operator operand invalid "git grep --extended-regexp" does not support non-greedy sequences on MacOS. Use an equivalent greedy sequence instead. --- scripts/source-maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/source-maintenance.sh b/scripts/source-maintenance.sh index 9169914cd6..db540a22a4 100755 --- a/scripts/source-maintenance.sh +++ b/scripts/source-maintenance.sh @@ -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 -- 2.47.2