1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Andrew Gallant 112b3c5e0a
Fix another bug in -o/--only-matching.
The handling of the -o/--only-matching was incorrect. We cannot ever
re-run regexes on a *subset* of a matched line, because it doesn't take
into account zero width assertions on the edges of the regex. This
occurs whenever an end user uses an assertion explicity, but also occurs
when one is used implicitly, e.g., with the `-w` flag.

This instead reuses the initial matched range from the first regex
match. We also apply this fix to coloring.

Fixes #493
2017-05-29 09:51:58 -04:00
..
hay.rs Add integration tests. 2016-09-09 22:58:30 -04:00
tests.rs Fix another bug in -o/--only-matching. 2017-05-29 09:51:58 -04:00
workdir.rs Use for_label_no_replacement. 2017-04-12 18:14:23 -04:00