mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
ba503eb677
It seems the inner literal detector fails spectacularly in cases of concatenations that involve groups. The issue here is that if the prefix of a group inside a concatenation can match the empty string, then any literals generated to that point in the concatenation need to be cut such that they are never extended. The detector isn't really built to handle this case, so we just act conservative cut literals whenever we see a sub-group. This may make some regexes slower, but the inner literal detector already misses plenty of cases. Literal detection (including in the regex engine) is a key component that needs to be completely rethought at some point. Fixes #1064 |
||
---|---|---|
.. | ||
data | ||
feature.rs | ||
hay.rs | ||
json.rs | ||
macros.rs | ||
misc.rs | ||
multiline.rs | ||
regression.rs | ||
tests.rs | ||
util.rs |