mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
Go back to replaceAll
This is required.
This commit is contained in:
parent
b0f1417166
commit
51dbca0f99
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user