Fix MatchVector::first_token to ignore negative values.
It was looking for minimum value and Position::Nowhere is the smallest you can get value-wise (min_int). So if there was an empty Match in a vector, first_token for the vector would always end up returning Position::Nowhere, which was wrong (empty submatches should've been ignored and Position::Nowhere returned only if there were no non-empty alternatives).
Please register or sign in to comment