Skip to content

Commit

Permalink
add comment back
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Nov 5, 2024
1 parent cc1b617 commit 5642beb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/ValidationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import * as LoginUtils from './LoginUtils';
import {parsePhoneNumber} from './PhoneNumber';
import StringUtils from './StringUtils';

/**
* Implements the Luhn Algorithm, a checksum formula used to validate credit card
* numbers.
*/
function validateCardNumber(value: string): boolean {
let sum = 0;
let shouldDouble = false;
Expand Down

0 comments on commit 5642beb

Please sign in to comment.