Skip to content

Commit 9450940

Browse files
authored
Update PAN Validation.js
1 parent bcfdd7a commit 9450940

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Client-Side Components/Catalog Client Script/PAN Validation/PAN Validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function onChange(control, oldValue, newValue, isLoading, isTemplate) {
44
}
55
var panNumber = g_form.getValue("pan_number"); //Get the PAN card information
66
var panRegex = /^[A-Z]{5}[0-9]{4}[A-Z]{1}$/; // Regex for the PAN Card
7-
var panRegexAllCases = new RegExp(panRegex, "gim"); // Regex for checking PAN card in all cases(capital, lower,mixed) and multiline text fields.
7+
var panRegexAllCases = new RegExp(panRegex, "gim"); // Regex for checking PAN card in all cases(UPPER,lower,miXeD) and multiline text fields.
88

99
if (panRegexAllCases.test(panNumber)) {
1010
g_form.showFieldMsg("pan_number", "Valid PAN card number.", true); //Valid PAN card enterd populates this message

0 commit comments

Comments
 (0)