mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Beta version 3.7.6: Fix card expire date validation.
This commit is contained in:
parent
7db2256f63
commit
35142476b2
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ struct SimpleFieldState {
|
|||
SimpleFieldState result) {
|
||||
if (result.value.isEmpty()) {
|
||||
return result;
|
||||
} else if (result.value[0] == '1' && result.value[1] > '2') {
|
||||
} else if (result.value[0] == '1'
|
||||
&& (result.value.size() > 1)
|
||||
&& result.value[1] > '2') {
|
||||
result.value = result.value.mid(0, 2);
|
||||
return result;
|
||||
} else if (result.value[0] > '1') {
|
||||
|
|
Loading…
Add table
Reference in a new issue