Broken test case(s) when implementing `patch_minor` in user agent parser?
masklinn opened this issue · comments
masklinn commented
It might be an error in my implementation, but when trying to add patch_minor
to the "user agent" parser I'm getting mismatches: test_ua has the following case:
Lines 1478 to 1483 in d668d6c
as far as I can tell this should match the following rule:
Lines 850 to 851 in d668d6c
but the rule has 5 groups, so it is capturing
patch_minor: '0'
not null is it not?
And the reverse issue,
Lines 6754 to 6759 in d668d6c
should match
Lines 176 to 177 in d668d6c
but the regex only has 4 groups including the family, so there should be no capture of the
patch_minor
.