Use a more appropriate function for substring filtering

This commit is contained in:
Timothy Warren 2017-04-07 16:58:08 -04:00
parent 555de3d17b
commit e6cfe2b6e9
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class Kitsu {
foreach($existingTitles as $existing)
{
$isSubset = mb_stripos($existing, $title) !== FALSE;
$isSubset = mb_substr_count($existing, $title) > 0;
$diff = levenshtein($existing, $title);
$onlydifferentCase = (mb_strtolower($existing) === mb_strtolower($title));