Skip to content

Commit e6a035f

Browse files
committed
chores: Change IsCJK algo
1 parent d7c56e6 commit e6a035f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

BetterLyrics.WinUI3/BetterLyrics.WinUI3 (Package)/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Identity
1313
Name="37412.BetterLyrics"
1414
Publisher="CN=E1428B0E-DC1D-4EA4-ACB1-4556569D5BA9"
15-
Version="1.0.118.0" />
15+
Version="1.0.119.0" />
1616

1717
<mp:PhoneIdentity PhoneProductId="ca4a4830-fc19-40d9-b823-53e2bff3d816" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
1818

BetterLyrics.WinUI3/BetterLyrics.WinUI3/Helper/LanguageHelper.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@ static LanguageHelper()
120120

121121
public static bool IsCJK(string text)
122122
{
123-
return DetectLanguageCode(text)?.Substring(0, 2) switch
124-
{
125-
"zh" or "ja" or "ko" => true,
126-
_ => false
127-
};
123+
return Lyricify.Lyrics.Helpers.General.StringHelper.IsCJK(text);
128124
}
129125

130126
public static bool IsCJK(char ch)

0 commit comments

Comments
 (0)