Skip to content

Commit 831b63a

Browse files
authored
Fix parsing of " followed by a space in sts file (#142)
1 parent 8ca8a8c commit 831b63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projections/analysis/StsReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private static String matchQuotes(StringTokenizer st) {
123123
}
124124

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

0 commit comments

Comments
 (0)