Skip to content

Commit

Permalink
feat: added validation for Pancard and lint error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulnikam2002 committed Sep 24, 2023
1 parent 01870d6 commit e5e0a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isPancard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export default function isPancard(str) {
const pancardRegex = /^[A-Z]{5}[0-9]{4}[A-Z]$/;
const isPancardNumber = pancardRegex.test(str);
return isPancardNumber;
}
}

0 comments on commit e5e0a30

Please sign in to comment.