Add brackets detection to getBeforeCursor()

This commit is contained in:
shinich39
2024-12-17 04:31:01 +09:00
parent 8e815e2af5
commit b0715dddda
+1 -1
View File
@@ -536,7 +536,7 @@ export class TextAreaAutoComplete {
#update() {
let before = this.helper.getBeforeCursor();
if (before?.length) {
const m = before.match(/([^,;"]+)$/);
const m = before.match(/([^,;"|{}()]+)$/);
if (m) {
before = m[0]
.replace(/^\s+/, "")