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^@^ }"` ];