diff --git a/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-description.js b/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-description.js index eec95764a7ef5..95711bd2755a2 100644 --- a/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-description.js +++ b/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-description.js @@ -12,7 +12,7 @@ define([ $.validator.addMethod( 'validate-image-description', function (value) { - return /^[a-zA-Z0-9\-\_\.\,\n\s]+$|^$/i.test(value); + return /^[a-zA-Z0-9À-ž\s\-\_\.\,]+$/.test(value); }, $.mage.__('Please use only letters (a-z or A-Z), numbers (0-9), ' + 'dots (.), commas(,), underscores (_), dashes (-), and spaces on this field.')); diff --git a/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-title.js b/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-title.js index 0a55a22ab1a10..d13c3466e48d8 100644 --- a/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-title.js +++ b/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-title.js @@ -12,7 +12,7 @@ define([ $.validator.addMethod( 'validate-image-title', function (value) { - return /^[a-zA-Z0-9\-\_\.\,\s]+$/i.test(value); + return /^[a-zA-Z0-9À-ž\s\-\_\.\,]+$/.test(value); }, $.mage.__('Please use only letters (a-z or A-Z), numbers (0-9), dots (.), commas(,), ' + 'underscores (_), dashes(-) and spaces on this field.'));