-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ripgrep misses a match but succeeds with -S
and -i
#781
Comments
I get a similar issue and git bisect reports that 7dd1194 is the first bad commit. |
@lilydjwg Thanks for the bisect! That is indeed the cause of the issue. That commit updated the regex library, which had a new Boyer-Moore optimization. Apparently, the implementation of Boyer-Moore is buggy. This should be fixed in the next release. (The reason why Thanks @OliverUv for the great bug report! |
What version of ripgrep are you using?
ripgrep 0.7.1
-AVX -SIMD
What operating system are you using ripgrep on?
If this is a bug, what are the steps to reproduce the behavior?
Download rgbug.tar.gz, unpack, enter the contained directory, then search for
clone_created
.If this is a bug, what is the actual behavior?
https://gist.github.com/e1af638724793b341eee4f4f9e902afd
If this is a bug, what is the expected behavior?
Following the reproduction instructions will show a result from file
one.ts
, it should also show a result fromtwo.ts
. If used with the-i
or-S
flags, both results are shown as expected.The text was updated successfully, but these errors were encountered: