Commit d9879b72 authored by Natanael Copa's avatar Natanael Copa

version: allow only TOKEN_LETTER after a digit

parent 8fb4f6d1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment