From 5fc1bd155ab495b41ac63f7178e9ed4dab241e2e Mon Sep 17 00:00:00 2001 From: Nikiroy78 <35032449+Nikiroy78@users.noreply.github.com> Date: Wed, 8 Mar 2023 01:11:24 +0300 Subject: [PATCH] - - --- api/wrong_symbols.find.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/wrong_symbols.find.php b/api/wrong_symbols.find.php index 3c72ebf..4dca4a8 100644 --- a/api/wrong_symbols.find.php +++ b/api/wrong_symbols.find.php @@ -18,15 +18,11 @@ function detectLang ($text) { function selectEnIndex ($text) { $enSymbols = array(); - // $textArr = explode(" ", $text); - // $textArr = str_split($text, 1); $text = iconv("UTF-8", "windows-1251", $text); $textArr = str_split($text, 1); $enDict = str_split('qwertyuiopasdfghjklzxcvbnm', 1); - // print_r($textArr); for ($i=0; $i <= count($textArr); $i++) { - // if (strpos('ййцукенгшщзхъфывапролджэячсмитьбюёё', mb_strtolower($text[$i])) === true) { if (in_array(mb_strtolower($textArr[$i]), $enDict)) { $enSymbols[] = $i; } @@ -57,7 +53,6 @@ function wrong_symbol ($text, $lang) { if ( $cacheResult === "NO" ) { - // return selectRuIndex($text); $enSymbols = selectEnIndex($text); $text = iconv("UTF-8", "windows-1251", $text); $textArr = str_split($text, 1);