소스 검색

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