فهرست منبع

removed regex options that isn't always available

Scrublord1336 6 سال پیش
والد
کامیت
01b0de5f76
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Parsing/RichTextParser.cs

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Parsing/RichTextParser.cs

@@ -7,7 +7,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Parsing
 
    public class RichTextParser
    {
-      private static readonly Regex TagRegex = new Regex( "<.*?>", RegexOptions.Compiled );
+      private static readonly Regex TagRegex = new Regex( "<.*?>" );
       private static readonly HashSet<string> IgnoreTags = new HashSet<string> { "ruby", "group" };
       private static readonly HashSet<string> KnownTags = new HashSet<string> { "b", "i", "size", "color", "ruby", "em", "sup", "sub", "dash", "space", "group", "u", "strike", "param", "format", "emoji", "speed", "sound" };