From c4cc19a7f5d4b190806126230b8ab283ce19ddbd Mon Sep 17 00:00:00 2001 From: Sekwah Date: Thu, 5 Sep 2024 10:32:32 +0100 Subject: [PATCH] fix: tag quotes logic --- .../java/com/sekwah/advancedportals/core/util/TagReader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/sekwah/advancedportals/core/util/TagReader.java b/core/src/main/java/com/sekwah/advancedportals/core/util/TagReader.java index da7d340c..3810a4f1 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/util/TagReader.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/util/TagReader.java @@ -51,6 +51,9 @@ public class TagReader { currentIdentifier = arg.substring(0, colonIndex); currentValue = new StringBuilder(arg.substring(colonIndex + 1)); inQuotes = currentValue.toString().startsWith("\""); + if(inQuotes) { + currentValue.deleteCharAt(0); + } } else { if (!currentValue.isEmpty()) { currentValue.append(" "); @@ -60,6 +63,7 @@ public class TagReader { if (inQuotes && arg.endsWith("\"")) { inQuotes = false; + currentValue.deleteCharAt(currentValue.length() - 1); } }