Update getSimilarName function to prevent 500 errors on release details page

This commit is contained in:
DariusIII
2019-10-29 15:14:03 +01:00
parent 6fca6b3e72
commit 54a71fd160
+1 -1
View File
@@ -191,7 +191,7 @@ if (! function_exists('getSimilarName')) {
*/
function getSimilarName($name): string
{
return implode(' ', \array_slice(str_word_count(str_replace(['.', '_'], ' ', $name), 2), 0, 2));
return implode(' ', \array_slice(str_word_count(str_replace(['.', '_', '-'], ' ', $name), 2), 0, 2));
}
}