Explorar el Código

removed legacy decode pattern

Scrublord1336 hace 6 años
padre
commit
5e29de1bbc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
       }