Browse Source

removed legacy decode pattern

Scrublord1336 6 years ago
parent
commit
5e29de1bbc
1 changed files with 2 additions and 2 deletions
  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;
       }