Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 555de3d17b - Show all commits

View File

@ -219,11 +219,11 @@ class Kitsu {
foreach($existingTitles as $existing)
{
$isSubset = stripos($existing, $title) !== FALSE;
$isSubset = mb_stripos($existing, $title) !== FALSE;
$diff = levenshtein($existing, $title);
$onlydifferentCase = (mb_strtolower($existing) === mb_strtolower($title));
if ($diff < 3 OR $isSubset OR $onlydifferentCase)
if ($diff <= 3 OR $isSubset OR $onlydifferentCase OR mb_strlen($title) > 55)
{
return FALSE;
}