Skip to content

Commit

Permalink
fix(markdown behavior): fix ordered list matcher regex
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhg committed Nov 28, 2024
1 parent 7c779e7 commit 4ca9114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/editor/behavior/behavior.markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export function createMarkdownBehaviors(config: MarkdownBehaviorsConfig) {
}
}

const looksLikeOrderedList = /^1./.test(focusSpan.node.text)
const looksLikeOrderedList = /^1\./.test(focusSpan.node.text)
const orderedListStyle = config.orderedListStyle?.({
schema: context.schema,
})
Expand Down

0 comments on commit 4ca9114

Please sign in to comment.