From fe7da3e6ed46e5f2982b32e6a75bf403118ab943 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Sun, 24 Sep 2023 19:59:40 +0200 Subject: [PATCH] fix: trim ignoreCommitsIfMessageMatches --- .../java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java b/src/main/java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java index 308b08e..fad8c95 100644 --- a/src/main/java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java +++ b/src/main/java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java @@ -288,7 +288,7 @@ public void execute() throws MojoExecutionException { } builder.withRemoveIssueFromMessageArgument(this.removeIssueFromMessage); if (this.isSupplied(this.ignoreCommitsIfMessageMatches)) { - builder.withIgnoreCommitsWithMessage(this.ignoreCommitsIfMessageMatches); + builder.withIgnoreCommitsWithMessage(this.ignoreCommitsIfMessageMatches.trim()); } if (this.ignoreCommitsOlderThan != null) { builder.withIgnoreCommitsOlderThan(this.ignoreCommitsOlderThan);