* adjust for pinyin abbr.

This commit is contained in:
wangyidong
2021-07-13 17:38:25 +08:00
parent 9fe62d4386
commit 753943fe07
+5 -1
View File
@@ -2013,7 +2013,11 @@ EOD;
$abbr = '';
foreach($wordsPinYin as $i => $wordPinyin)
{
if($wordPinyin) $abbr .= $wordPinyin[0];
if($wordPinyin)
{
$letter = $wordPinyin[0];
if(preg_match('/\w/', $letter)) $abbr .= $letter;
}
}
$allConverted[$item] = strtolower(join($wordsPinYin) . ' ' . $abbr);