chores: Change IsCJK algo

This commit is contained in:
Zhe Fang
2025-11-13 07:42:01 -05:00
parent d7c56e6b42
commit e6a035f8e1
2 changed files with 2 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
<Identity
Name="37412.BetterLyrics"
Publisher="CN=E1428B0E-DC1D-4EA4-ACB1-4556569D5BA9"
Version="1.0.118.0" />
Version="1.0.119.0" />
<mp:PhoneIdentity PhoneProductId="ca4a4830-fc19-40d9-b823-53e2bff3d816" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

View File

@@ -120,11 +120,7 @@ namespace BetterLyrics.WinUI3.Helper
public static bool IsCJK(string text)
{
return DetectLanguageCode(text)?.Substring(0, 2) switch
{
"zh" or "ja" or "ko" => true,
_ => false
};
return Lyricify.Lyrics.Helpers.General.StringHelper.IsCJK(text);
}
public static bool IsCJK(char ch)