Skip to content

Commit 2a90f34

Browse files
committed
fix: 部分情况下无法正确识别字符串中的Icon部分
1 parent 0a9e6b1 commit 2a90f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VModer.Core/Infrastructure/Parser/LocalizationFormatParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class LocalizationFormatParser
2828
.Map(text => new LocalizationFormatInfo(string.Concat(text), LocalizationFormatType.Icon));
2929

3030
private static readonly Parser<char, LocalizationFormatInfo> TextParser =
31-
from text in Try(String("$$").WithResult('$')).Or(AnyCharExcept('$', '§')).AtLeastOnceString()
31+
from text in Try(String("$$").WithResult('$')).Or(AnyCharExcept('$', '§', '£')).AtLeastOnceString()
3232
select new LocalizationFormatInfo(text, LocalizationFormatType.Text);
3333

3434
private static readonly Parser<char, IEnumerable<LocalizationFormatInfo>> LocalizationTextParser =

0 commit comments

Comments
 (0)