From 5642beb346b91787391d42396e0ab415462e746b Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 5 Nov 2024 15:06:36 -0700 Subject: [PATCH] add comment back --- src/libs/ValidationUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/ValidationUtils.ts b/src/libs/ValidationUtils.ts index bae674834ff..4692b8f379f 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;