From 8a1ef180a2d3e60433f6bdff002083a1391f986e Mon Sep 17 00:00:00 2001 From: James Quinley Date: Fri, 16 Sep 2022 23:04:34 -0700 Subject: [PATCH] Fixes the [] from appearing in EULA. --- .../DelegationServices/delegationServices.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java b/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java index bb9dffd..48f475f 100644 --- a/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java +++ b/src/main/java/com/jamesquinley/DelegationServices/delegationServices.java @@ -1423,7 +1423,12 @@ public class delegationServices { Path path = Paths.get(fileName); byte[] bytes = Files.readAllBytes(path); List allLines = Files.readAllLines(path, StandardCharsets.UTF_8); - policyDocument = allLines.toString(); + String formattedString = allLines.toString() + .replace(",", "") //remove the commas + .replace("[", "") //remove the right bracket + .replace("]", "") //remove the left bracket + .trim(); //remove trailing spaces from partially initialized arrays + policyDocument = formattedString; } catch (Exception EXR) {