Skip to content

Commit

Permalink
feat(Hierarchy Note): ✨ Allow any list delimiter -, *, +
Browse files Browse the repository at this point in the history
alotta backslashes in this regex :p
  • Loading branch information
SkepticMystic committed Aug 21, 2021
1 parent 93c01ea commit e307696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] }[],
Expand Down

0 comments on commit e307696

Please sign in to comment.