mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 02:25:49 +01:00
fix: tag quotes logic
This commit is contained in:
parent
5395d769e1
commit
c4cc19a7f5
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user