Fix tests fails on Windows caused by newline format (#2172)

This commit is contained in:
woshikid
2022-11-03 08:22:43 +08:00
committed by GitHub
parent e302c12db7
commit 23fc153ab3

View File

@@ -293,7 +293,7 @@ public class ResourceControllerTests {
}
private String replaceNewLines(String text) {
return text.replace("\n", "").replace("\t", "");
return text.replace("\r", "").replace("\n", "").replace("\t", "");
}
@Test