From 0d294ce720afa263c1734f06bbb440dcc809198b Mon Sep 17 00:00:00 2001 From: Pablo Martinez Garcia Date: Tue, 10 Jan 2023 13:45:49 +0100 Subject: [PATCH] [AAE-11708] Use perl regexp instead of reverse grep in changelog (#8114) --- lib/cli/scripts/changelog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/scripts/changelog.ts b/lib/cli/scripts/changelog.ts index 4c61832f29..e7f53b697c 100644 --- a/lib/cli/scripts/changelog.ts +++ b/lib/cli/scripts/changelog.ts @@ -92,8 +92,8 @@ function getCommits(options: DiffOptions): Array { options.range, `--no-merges`, `--first-parent`, - `--invert-grep`, - `--author="${authorFilter}"`, + `--perl-regexp`, + `--author="^((?!${authorFilter}).*)$"`, // this format is needed to allow parsing all characters in the commit message and safely convert to JSON `--format="{ ^@^hash^@^: ^@^%h^@^, ^@^author^@^: ^@^%an^@^, ^@^author_email^@^: ^@^%ae^@^, ^@^date^@^: ^@^%ad^@^, ^@^subject^@^: ^@^%s^@^ }"` ];