diff --git a/src/lib/PreCommit/Filter/ShortCommitMsg/Parser/Jira.php b/src/lib/PreCommit/Filter/ShortCommitMsg/Parser/Jira.php index 750a4dd..34f94b9 100644 --- a/src/lib/PreCommit/Filter/ShortCommitMsg/Parser/Jira.php +++ b/src/lib/PreCommit/Filter/ShortCommitMsg/Parser/Jira.php @@ -289,11 +289,8 @@ protected function interpretShortMessage($message) //endregion $userMessage = null; - if ($m) { - $userMessage = trim(array_pop($m)); - if (is_numeric($userMessage)) { - $userMessage = ""; - } + if ($m && isset($m[6])) { + $userMessage = $m[6]; } return [$commitVerb, $issueKey, $userMessage];