Skip to content

Commit

Permalink
type: fix olist type issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 23, 2024
1 parent dc597f0 commit b6c0327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/commands/olist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const olist: ICommand = {
if (!state || !view) return;
const lineInfo = view.state.doc.lineAt(view.state.selection.main.from);
let mark = '1. ';
const matchMark = lineInfo.text.match(/^\1\./);
const matchMark = lineInfo.text.match(/^1\./);
if (matchMark && matchMark[0]) {
mark = '';
}
Expand Down

0 comments on commit b6c0327

Please sign in to comment.