Use a more appropriate function for substring filtering
This commit is contained in:
parent
ec6f9b1189
commit
d157f097d1
@ -219,7 +219,7 @@ class Kitsu {
|
|||||||
|
|
||||||
foreach($existingTitles as $existing)
|
foreach($existingTitles as $existing)
|
||||||
{
|
{
|
||||||
$isSubset = mb_stripos($existing, $title) !== FALSE;
|
$isSubset = mb_substr_count($existing, $title) > 0;
|
||||||
$diff = levenshtein($existing, $title);
|
$diff = levenshtein($existing, $title);
|
||||||
$onlydifferentCase = (mb_strtolower($existing) === mb_strtolower($title));
|
$onlydifferentCase = (mb_strtolower($existing) === mb_strtolower($title));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user