Sequence should use a non-capturing group otherwise it cannot safely be used
within other components.
For instance, this test will fail:
PatternComponent component = exactly(2, sequence("a", "b"));
PatternMatcher matches = new PatternMatcher(component);
assertThat("abab", matches);
This matches "abb" instead.
Original issue reported on code.google.com by oliver.p...@gmail.com on 3 Jun 2013 at 4:25
Original issue reported on code.google.com by
oliver.p...@gmail.com
on 3 Jun 2013 at 4:25