mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update getSimilarName function to prevent 500 errors on release details page
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user