Skip to content
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

Some matches do not show in results #3

Closed
changhenry2 opened this issue Jan 5, 2019 · 4 comments
Closed

Some matches do not show in results #3

changhenry2 opened this issue Jan 5, 2019 · 4 comments

Comments

@changhenry2
Copy link

@kriomant
Hi, as title
Here is the file I used: link (utf-8 encoded, contents are in traditional Chinese)
If you search hashtag symbol (#), it should have 15 matches (I checked in notepad++ and grep)
However in the latest ogrep (0.4.0), it only shows 6 results.
I also tested in python version ogrep, it works fine (also with 15 results).
You may confirm if it is a bug specific in rust. Thanks!

@kriomant
Copy link
Owner

kriomant commented Jan 5, 2019

Please try with --preprocessor=preserve option.

@kriomant
Copy link
Owner

kriomant commented Jan 9, 2019

Here is what I get using your file and preprocessor=preserve option:

2019-01-09 22 14 27

Is it ok?

@changhenry2
Copy link
Author

Hi, Thank you and sorry for the late reply!
It works!
I did not notice the option you mentioned (does not exist in Python version?).

@kriomant
Copy link
Owner

I'm glad it helped.

No, there is not such option in Python version, because there is no feature there turned off by this option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants