Fix text list insert

This commit is contained in:
Yurii
2026-06-06 15:00:34 +03:00
parent 0830025699
commit 1e6ecb0423

View File

@@ -667,7 +667,7 @@ class TextFieldView<
const after = value.substring(selectionEnd);
// Last line, a list item syntax.
const match = before.match(/(^|\n)( *[-*]|\d+\.) ([^*\-\n]*)$/);
const match = before.match(/(^|\n)( *[-*]|\d+\.) ([^\n]*)$/);
if (!match) {
// Prevent unwanted scroll applied by the browser on enter.