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;