Skip to content

Commit

Permalink
Merge pull request #77 from Likhachev/main
Browse files Browse the repository at this point in the history
fix: Wrong commits with non-latin description grouping
  • Loading branch information
marcocesarato authored May 19, 2024
2 parents b718634 + ead95f2 commit 0ab44d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"require": {
"php": ">=7.1.3",
"ext-json": "*",
"symfony/console": "^4 || ^5 || ^6 || ^7"
"symfony/console": "^4 || ^5 || ^6 || ^7",
"ext-mbstring": "*"
},
"extra": {
"hooks": {
Expand All @@ -74,4 +75,4 @@
"post-merge": "composer install"
}
}
}
}
2 changes: 1 addition & 1 deletion src/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ protected function getVersionCode(string $tag, string $prefix, string $suffix):
*/
protected function getItemKey(string $string): string
{
return strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '', $string));
return mb_strtolower(preg_replace('/\s+/', '', $string));
}

/**
Expand Down

0 comments on commit 0ab44d9

Please sign in to comment.