瀏覽代碼

removed legacy decode pattern

Scrublord1336 6 年之前
父節點
當前提交
5e29de1bbc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/XUnity.AutoTranslator.Plugin.Core/Utilities/TextHelper.cs

+ 2 - 2
src/XUnity.AutoTranslator.Plugin.Core/Utilities/TextHelper.cs

@@ -43,8 +43,8 @@ namespace XUnity.AutoTranslator.Plugin.Core.Utilities
       public static string Decode( string text )
       {
          // Remove these in newer version
-         text = text.Replace( "0D", "\r" ).Replace( "\\r", "\r" );
-         text = text.Replace( "0A", "\n" ).Replace( "\\n", "\n" );
+         text = text.Replace( "\\r", "\r" );
+         text = text.Replace( "\\n", "\n" );
          return text;
       }