File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Ui/view/base/web/js/lib/validation Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -757,7 +757,7 @@ define([
757
757
] ,
758
758
'validate-not-number-first' : [
759
759
function ( value ) {
760
- return utils . isEmptyNoTrim ( value ) || / ^ [ ^ 0 - 9 -\. ] .* $ / . test ( value ) ;
760
+ return utils . isEmptyNoTrim ( value ) || / ^ [ ^ 0 - 9 -\. ] .* $ / . test ( value . trim ( ) ) ;
761
761
} ,
762
762
$ . mage . __ ( 'First character must be letter.' )
763
763
] ,
Original file line number Diff line number Diff line change 992
992
] ,
993
993
'validate-not-number-first' : [
994
994
function ( value ) {
995
- return $ . mage . isEmptyNoTrim ( value ) || / ^ [ ^ 0 - 9 -\. ] .* $ / . test ( value ) ;
995
+ return $ . mage . isEmptyNoTrim ( value ) || / ^ [ ^ 0 - 9 -\. ] .* $ / . test ( value . trim ( ) ) ;
996
996
} ,
997
997
$ . mage . __ ( 'First character must be letter.' )
998
998
] ,
You can’t perform that action at this time.
0 commit comments