Add linebreak to regex.

This commit is contained in:
shinich39
2024-12-24 06:05:53 +09:00
parent b0715dddda
commit 772ff04164
+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(/([^,;"|{}()\n]+)$/);
if (m) {
before = m[0]
.replace(/^\s+/, "")