Skip to content

Commit

Permalink
Fix regex for footnote definition where it would capture up to the la…
Browse files Browse the repository at this point in the history
…st bracket colon instead of only the first.
  • Loading branch information
charliecm committed Oct 15, 2024
1 parent 9d22447 commit 92e1f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tidyFootnotes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Editor } from 'obsidian';

const reKey = /\[\^(.+?(?=\]))\]/gi;
const reDefinition = /\[\^(.+)\]\:/;
const reDefinition = /^\[\^([^\]]+)\]\:/;

/** An existing footnote key or definition. */
interface Marker {
Expand Down

0 comments on commit 92e1f33

Please sign in to comment.