mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Fixed containsOperator failing for "" + Object
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user