EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix markdown list regexp
Yuri Kuznetsov859f0c970bc3
diff --git a/client/src/views/fields/text.js b/client/src/views/fields/text.jsindex 578990ba45..40405a4ea2 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.