Skip to content

Commit

Permalink
16544: Static fixes, added empty lines to if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyBoyko committed Jul 12, 2018
1 parent 2ed9af3 commit e71836b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ define([
if (utils.isEmpty(value)) {
return true;
}

if (value.length !== 17) {
return false;
}
Expand Down Expand Up @@ -274,6 +275,7 @@ define([
if (utils.isEmpty(value)) {
return true;
}

if (/[^0-9-]+/.test(value)) {
return false;
}
Expand Down

0 comments on commit e71836b

Please sign in to comment.