Skip to content

EspoCRM – Open Source CRM Application

Fix text list insert

Yurii1e6ecb04233a
diff --git a/client/src/views/fields/text.ts b/client/src/views/fields/text.ts
index dfc4b37750..a2fc518328 100644
--- a/client/src/views/fields/text.ts
+++ b/client/src/views/fields/text.ts
@@ -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.