Fixed containsOperator failing for "" + Object

This commit is contained in:
bigguy345 committed 2026-03-05 13:10:29 +02:00
1 parent 66c4b4c4c3
commit 8996f2b7f1
1 file changed
+1 -1
@@ -5397,7 +5397,7 @@ public class ScriptDocument {
if (prevIdx >= 0) {
char prev = expr.charAt(prevIdx);
// If previous char is identifier char or ), this is binary
if (Character.isJavaIdentifierPart(prev) || prev == ')' || prev == ']' || Character.isDigit(prev)) {
if (Character.isJavaIdentifierPart(prev) || prev == ')' || prev == ']' || prev == '"' || prev == '\'' || Character.isDigit(prev)) {
return true;
}
}