diff --git a/src/libs/ValidationUtils.ts b/src/libs/ValidationUtils.ts index bae674834ff3..4692b8f379f2 100644 --- a/src/libs/ValidationUtils.ts +++ b/src/libs/ValidationUtils.ts @@ -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;