Skip to content

Commit b214d73

Browse files
committed
Adjust string chunk building logic to include as many hyphenated portions as possible
1 parent 269b7b6 commit b214d73

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ext/version_sorter/version_sorter.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ parse_version_number(const char *string)
153153
if (string[offset] == '-' || isalpha(string[offset])) {
154154
uint16_t start = offset;
155155

156-
if (string[offset] == '-')
157-
offset++;
158-
159-
while (isalpha(string[offset]))
156+
while (string[offset] == '-' || isalpha(string[offset]))
160157
offset++;
161158

162159
version->comp[comp_n].string.offset = start;

0 commit comments

Comments
 (0)