ソースを参照

removed regex options that isn't always available

Scrublord1336 6 年 前
コミット
01b0de5f76

+ 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" };