Fix emoji completion inside of page links
This commit is contained in:
parent
668059aadb
commit
3895e3026c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user