Skip to content

Commit 50e1f0a

Browse files
committed
MAGETWO-91465: Once integer is stored for State/Province field, it can not be changed to alphanumeric
1 parent e09b1aa commit 50e1f0a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ define([
757757
],
758758
'validate-not-number-first': [
759759
function (value) {
760-
return utils.isEmptyNoTrim(value) || /^[^0-9].*$$/.test(value);
760+
return utils.isEmptyNoTrim(value) || /^[^0-9].*$/.test(value);
761761
},
762762
$.mage.__('First character must be letter.')//eslint-disable-line max-len
763763
],

0 commit comments

Comments
 (0)