Go back to replaceAll

This is required.
This commit is contained in:
tastybento 2022-03-19 15:12:04 +00:00
parent b0f1417166
commit 51dbca0f99

View File

@ -196,7 +196,7 @@ public class WebManager {
@NonNull @NonNull
private String getContent(@NonNull GitHubRepository repo, String fileName) { private String getContent(@NonNull GitHubRepository repo, String fileName) {
try { try {
String content = repo.getContent(fileName).getContent().replace("\\n", ""); String content = repo.getContent(fileName).getContent().replaceAll("\\n", ""); // replaceAll is required here
return new String(Base64.getDecoder().decode(content), StandardCharsets.UTF_8); return new String(Base64.getDecoder().decode(content), StandardCharsets.UTF_8);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
// Fail silently // Fail silently