mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
91afd4214a
This furthers our kludge of dealing with PCRE2's look-around in the printer. Because of our bad abstraction boundaries, we added a kludge to deal with PCRE2 look-around by extending the bytes we search by a fixed amount to hopefully permit any look-around to operate. But because of that kludge, we wind up over extending ourselves in some cases and dragging along those extra bytes. We had fixed this for simple searching by simply rejecting any matches past the end point. But we didn't do the same for replacements. So this commit extends our kludge to replacements. Thanks to @sonohgong for diagnosing the problem and proposing a fix. I mostly went with their solution, but adding the new replacement routine as an internal helper rather than a new APIn in the 'grep-matcher' crate. Fixes #2095, Fixes #2208 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-MIT | ||
README.md | ||
UNLICENSE |
grep-printer
Print results from line oriented searching in a human readable, aggregate or JSON Lines format.
Dual-licensed under MIT or the UNLICENSE.
Documentation
NOTE: You probably don't want to use this crate directly. Instead, you
should prefer the facade defined in the
grep
crate.
Usage
Add this to your Cargo.toml
:
[dependencies]
grep-printer = "0.1"