version: allow only TOKEN_LETTER after a digit
parent
8fb4f6d17c
commit
d9879b72d5
|
@ -33,7 +33,7 @@ static void next_token(int *type, apk_blob_t *blob)
|
|||
|
||||
if (blob->len == 0 || blob->ptr[0] == 0) {
|
||||
n = TOKEN_END;
|
||||
} else if (islower(blob->ptr[0])) {
|
||||
} else if (*type == TOKEN_DIGIT && islower(blob->ptr[0])) {
|
||||
n = TOKEN_LETTER;
|
||||
} else if (*type == TOKEN_SUFFIX && isdigit(blob->ptr[0])) {
|
||||
n = TOKEN_SUFFIX_NO;
|
||||
|
|
Loading…
Reference in New Issue