Преглед изворни кода

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