Skip to content

Commit fe550c9

Browse files
ENGCOM-4826: Update credit-card-number-validator.js #22493
- Merge Pull Request #22493 from justin-at-bounteous/magento2:patch-1 - Merged commits: 1. a69e9e9
2 parents 8b3fd9d + a69e9e9 commit fe550c9

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)