You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is that in this case, ripgrep isn't memory mapping the input. In that case, ripgrep tries to be "smart" and not actually read the entire contents on to the heap if it knows the pattern can't match through a line terminator. But in this case, we can't quite make that assumption since anchors can match line terminators as look-around.
The text was updated successfully, but these errors were encountered:
Initially found on HN: https://news.ycombinator.com/item?id=27324265
Specifically, while this output is correct (since
^
is set to be in regex multi-line mode always):It should be the case that using
(?-m)^b
or\Ab
would not printbaz
as a match. But that's not the case here:The issue here is that in this case, ripgrep isn't memory mapping the input. In that case, ripgrep tries to be "smart" and not actually read the entire contents on to the heap if it knows the pattern can't match through a line terminator. But in this case, we can't quite make that assumption since anchors can match line terminators as look-around.
The text was updated successfully, but these errors were encountered: