Skip to content

Commit e7eba95

Browse files
VitaliyBoykonmalevanec
authored andcommitted
16544: Static fixes
1 parent 63c3198 commit e7eba95

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/lib/validation

1 file changed

+4
-2
lines changed

app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,15 @@ define([
232232
function (value) {
233233
value = value.replace(/\s+/g, '');
234234

235-
return utils.isEmpty(value) || value.length > 9 && value.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/);
235+
return utils.isEmpty(value) || value.length > 9 &&
236+
value.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/);
236237
},
237238
$.mage.__('Please specify a valid phone number')
238239
],
239240
'phoneUK': [
240241
function (value) {
241-
return utils.isEmpty(value) || value.length > 9 && value.match(/^(\(?(0|\+44)[1-9]{1}\d{1,4}?\)?\s?\d{3,4}\s?\d{3,4})$/);
242+
return utils.isEmpty(value) || value.length > 9 &&
243+
value.match(/^(\(?(0|\+44)[1-9]{1}\d{1,4}?\)?\s?\d{3,4}\s?\d{3,4})$/);
242244
},
243245
$.mage.__('Please specify a valid phone number')
244246
],

0 commit comments

Comments
 (0)