-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
search: Print dot in results for nonprintable chars #4880
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mh, idk. The behavior doesn't make sense to me. If the user searches for "test" but gets as a result ........test.......
it is not a match. Doesn't it? It would be a match for .+test.+
(assuming .
also includes non-printable characters).
I think it is better to wait for the refactor merge and edit the process_one_string()
function (used in #4762 to discover strings) and escapes the non-printable chars their. It doesn't handle Unicode non-printables as well, but this is not too difficult to fix. Also we should give the option to define which non-printables should be included in a string and which are not (mark the end of a string).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid point, go ahead then.
Thanks! |
Hmm it would be good if an actual . can be differentiated from a . that is a non-printable character. |
Your checklist for this pull request
RZ_API
function and struct this PR changes.RZ_API
).Detailed description
#4762 hasn't landed yet (hopefully it'll be merged soon) so this pr improves slightly the current search results by using '.' for nonprintable chars instead of ignoring them, so that some additional information is provided in the results, and words don't run together.
Test plan
The change makes sense. All builds are green.
Closing issues
...