Skip to content

Commit

Permalink
cc check to 23 characters max
Browse files Browse the repository at this point in the history
  • Loading branch information
avneesh-akto committed Jul 20, 2024
1 parent 707950b commit cb989aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/dao/src/main/java/com/akto/dto/type/KeyTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public static boolean isJWT(String jwt) {
}

public static boolean isCreditCard(String s) {
if (s.length() < 12 || s.length() > 30) return false;
if (s.length() < 12 || s.length() > 23) return false;
char firstChar = s.charAt(0);
if (!Character.isDigit(firstChar)) return false;
if (!s.toLowerCase().equals(s.toUpperCase())) return false; // only numbers
Expand Down

0 comments on commit cb989aa

Please sign in to comment.