From e3076967fde061be5f2f36dbaa007ef208fb1e31 Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Sat, 21 Aug 2021 20:28:40 +0200 Subject: [PATCH] feat(Hierarchy Note): :sparkles: Allow any list delimiter `-`, `*`, `+` alotta backslashes in this regex :p --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index afba6f11..5c7c94a2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -346,7 +346,7 @@ export default class BreadcrumbsPlugin extends Plugin { const hier: { note: string; depth: number; children: string[] }[] = []; - const lineRegex = new RegExp(/\s*- \[\[(.*)\]\]/); + const lineRegex = new RegExp(/\s*[-\*\+] \[\[(.*)\]\]/); const pushNoteUp = ( hier: { note: string; depth: number; children: string[] }[],