Skip to content

Commit 460ec8d

Browse files
ENGCOM-8912: Category content upload media minify#31633 #32398
2 parents 253a94b + 8b6bee6 commit 460ec8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-description.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ define([
1212

1313
$.validator.addMethod(
1414
'validate-image-description', function (value) {
15-
return /^[a-zA-Z0-9\-\_\.\,\n\ ]+$|^$/i.test(value);
15+
return /^[a-zA-Z0-9\-\_\.\,\n\s]+$|^$/i.test(value);
1616

1717
}, $.mage.__('Please use only letters (a-z or A-Z), numbers (0-9), ' +
1818
'dots (.), commas(,), underscores (_), dashes (-), and spaces on this field.'));

app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/validation/validate-image-title.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ define([
1212

1313
$.validator.addMethod(
1414
'validate-image-title', function (value) {
15-
return /^[a-zA-Z0-9\-\_\.\,\ ]+$/i.test(value);
15+
return /^[a-zA-Z0-9\-\_\.\,\s]+$/i.test(value);
1616

1717
}, $.mage.__('Please use only letters (a-z or A-Z), numbers (0-9), dots (.), commas(,), ' +
1818
'underscores (_), dashes(-) and spaces on this field.'));

0 commit comments

Comments
 (0)