Skip to content

Commit

Permalink
fix: tag quotes logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Nov 18, 2024
1 parent 5395d76 commit c4cc19a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public static ArrayList<DataTag> getTagsFromArgs(String[] args) {
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(" ");
Expand All @@ -60,6 +63,7 @@ public static ArrayList<DataTag> getTagsFromArgs(String[] args) {

if (inQuotes && arg.endsWith("\"")) {
inQuotes = false;
currentValue.deleteCharAt(currentValue.length() - 1);
}
}

Expand Down

0 comments on commit c4cc19a

Please sign in to comment.