Polishing.

See #80
This commit is contained in:
Mark Paluch
2024-04-25 09:28:04 +02:00
parent 13a499f2fa
commit 096a49aa47

View File

@@ -61,10 +61,9 @@ class ParsedCommitMessage {
private static final Pattern ORIGINAL_PULL_REQUEST = Pattern
.compile("Original (?>pull request|PR|pullrequest)[:]*(?>\\s+)?" + A_TICKET.pattern(), Pattern.CASE_INSENSITIVE);
private static final Pattern RELATED_TICKET = Pattern.compile(
"(?>(?>Related (?>tickets|ticket))|(?>Ticket)|(?>Related))[:]*(?>\\s+)?((" + A_TICKET.pattern()
+ "(?>[\\s,]*))+)",
Pattern.CASE_INSENSITIVE);
private static final Pattern RELATED_TICKET = Pattern
.compile("(?>(?>Related (?>tickets|ticket))|(?>Ticket)|(?>Related))[:]*(?>\\s+)?((" + A_TICKET.pattern()
+ "(?>[\\s,]*))+)", Pattern.CASE_INSENSITIVE);
private final String summary;
private final @Nullable String body;