Skip to content

Commit

Permalink
Merge pull request #77 from EpicPlayerA10/fix/replace-crlf-with-lf
Browse files Browse the repository at this point in the history
Replace CRLF with LF in tests
  • Loading branch information
narumii authored Aug 26, 2024
2 parents 90c38ad + a10dc61 commit 01705fa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public void copyFile(String source, String path, String entryName) {
*/
@Override
public void saveClassFile(String path, String qualifiedName, String entryName, String content, int[] mapping) {
// Replace CRLF with LF
content = content.replace("\r\n", "\n");

Path saveTo = this.inputType == TestDeobfuscationBase.InputType.CUSTOM_JAR
? TestDeobfuscationBase.RESULTS_CLASSES_PATH.resolve(inputType.directory()).resolve(this.jarRelativePath).resolve(entryName + ".dec")
: TestDeobfuscationBase.RESULTS_CLASSES_PATH.resolve(inputType.directory()).resolve(entryName + ".dec");
Expand Down

0 comments on commit 01705fa

Please sign in to comment.