Skip to content

Commit

Permalink
Fix parsing of " followed by a space in sts file (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuch authored Sep 21, 2021
1 parent 8ca8a8c commit 831b63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projections/analysis/StsReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static String matchQuotes(StringTokenizer st) {
}

// If it starts and ends with a quote, then we've already matched
if (current.endsWith("\"")) {
if (current.endsWith("\"") && current.length() >= 2) {
return current.substring(1, current.length() - 1);
}

Expand Down

0 comments on commit 831b63a

Please sign in to comment.