Skip to content

Commit 0c84b91

Browse files
authored
ENGCOM-4826: Update credit-card-number-validator.js #22493
2 parents 72978fe + fe550c9 commit 0c84b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Payment/view/base/web/js/model/credit-card-validation/credit-card-number-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ define([
3636
return resultWrapper(null, false, false);
3737
}
3838

39-
value = value.replace(/|\s/g, '');
39+
value = value.replace(/\s+/g, '');
4040

4141
if (!/^\d*$/.test(value)) {
4242
return resultWrapper(null, false, false);

0 commit comments

Comments
 (0)