Skip to content

Commit

Permalink
Fixed #92: Issue duplicated in description.
Browse files Browse the repository at this point in the history
 - Fixed logic pattern group issue.
  • Loading branch information
igor518 committed Jul 5, 2017
1 parent 0214154 commit 7da317a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/PreCommit/Filter/ShortCommitMsg/Parser/Jira.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 7da317a

Please sign in to comment.