From cc4f9d017cd2ec3fd785768630b77f72b28439a1 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 23 Feb 2024 13:50:59 +0100 Subject: [PATCH] Fixes #701 --- plugs/editor/command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugs/editor/command.ts b/plugs/editor/command.ts index f5678474..6b39a64d 100644 --- a/plugs/editor/command.ts +++ b/plugs/editor/command.ts @@ -2,7 +2,7 @@ import { system } from "$sb/syscalls.ts"; import { CompleteEvent } from "$type/types.ts"; export async function commandComplete(completeEvent: CompleteEvent) { - const match = /\{\[([^\]]*)$/.exec(completeEvent.linePrefix); + const match = /\{\[([^\]\[]*)$/.exec(completeEvent.linePrefix); if (!match) { return null;