Skip to content
Snippets Groups Projects
Commit 1270ffe8 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

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).
parent 672fb3aa
Branches
No related merge requests found
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