Skip to content

Commit

Permalink
fix(bug): Bug that converts to "undefined" #27
Browse files Browse the repository at this point in the history
  • Loading branch information
YU000jp committed Feb 1, 2024
1 parent 533acb9 commit 7013465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const abbreviateNamespace = (namespaceRef: HTMLElement) => {


const abbreviated = (text: Array<string>, dot: string): string => {
const intendedText = text[text.length - 1]
const intendedText = text[text.length - 1] || text[0]
if (logseq.settings!.eliminatesLevels === "All levels"
&& !(/^\d+$/.test(intendedText)
|| /, \d+$/.test(intendedText)))
Expand Down

0 comments on commit 7013465

Please sign in to comment.