Skip to content

EspoCRM – Open Source CRM Application

markdown match fix

Yuri Kuznetsova30a3531561f
diff --git a/client/src/views/fields/text.js b/client/src/views/fields/text.js
index b8a1168a46..578990ba45 100644
--- a/client/src/views/fields/text.js
+++ b/client/src/views/fields/text.js
@@ -638,7 +638,7 @@ class TextFieldView extends BaseFieldView {
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.