Browse Source

handle lowercase passport card characters

https://learn.microsoft.com/en-us/purview/sit-defn-france-passport-number
nine digits and letters:

 - two digits
 - two letters (not case-sensitive)
 - five digits
Eric Betts 9 tháng trước cách đây
mục cha
commit
1416ff7a1a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      passy_common.c

+ 2 - 0
passy_common.c

@@ -142,6 +142,8 @@ char passy_checksum(char* str) {
             value = values[str[i] - '0'];
         } else if(str[i] >= 'A' && str[i] <= 'Z') {
             value = values[str[i] - 'A' + 10];
+        } else if(str[i] >= 'a' && str[i] <= 'z') {
+            value = values[str[i] - 'a' + 10];
         } else if(str[i] == '<') {
             value = 0;
         } else {