diff --git a/packages/plugs/core/anchor.ts b/packages/plugs/core/anchor.ts index 9de315c8..6f0c977d 100644 --- a/packages/plugs/core/anchor.ts +++ b/packages/plugs/core/anchor.ts @@ -30,7 +30,7 @@ export async function indexAnchors({ name: pageName, tree }: IndexTreeEvent) { } export async function anchorComplete() { - let prefix = await matchBefore("\\[\\[[^\\]@]*@[\\w\\.\\-\\/]*"); + let prefix = await matchBefore("\\[\\[[^\\]@:]*@[\\w\\.\\-\\/]*"); if (!prefix) { return null; } diff --git a/packages/plugs/core/page.ts b/packages/plugs/core/page.ts index 55a749ef..ac2b713a 100644 --- a/packages/plugs/core/page.ts +++ b/packages/plugs/core/page.ts @@ -206,7 +206,7 @@ export async function reindexCommand() { // Completion export async function pageComplete() { - let prefix = await matchBefore("\\[\\[[^\\]@]*"); + let prefix = await matchBefore("\\[\\[[^\\]@:]*"); if (!prefix) { return null; }