Skip to content

Commit bff0f37

Browse files
author
Jimmy
committed
fix minify error
1 parent 2f7b55d commit bff0f37

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)