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

Search with special character "?" breaks search logic #3462

Open
E-ThanG opened this issue Sep 29, 2024 · 0 comments
Open

Search with special character "?" breaks search logic #3462

E-ThanG opened this issue Sep 29, 2024 · 0 comments

Comments

@E-ThanG
Copy link

E-ThanG commented Sep 29, 2024

Distribution

Tested in Mint 22 Cinnamon

Package version

6.2.8

Frequency

Always

Bug description

I hope I'm not completely off base here. Nemo seems to treat the question mark as a special character when it's used in a file name search. I believe that it is supposed to match any single character, though I haven't found any documentation of that behavior. But there are many times where it does other odd things as well.

Assume that I have files named A, B, C, AB, BA, BCA, AAA, AAAA, D, AA, BB, and CC.

  • Searching for "A B" only returns AB, BA, and BCA, good
  • Searching for "A?" should return AA, AB, AAA, and AAAA, but only returns AA and AB. Apparently "A?" is treated as a 2 character search of A followed by any other character. As a RegEx that'd be ^A.$
  • Searching for "A B?" should match A and B followed by any single character. It should only match BCA and BA, but it matches A, AAA, AAAA, AB, BA, BCA, AA, and BB.
  • Searching for "A B ?" (with a space) matches everything except CC.

Steps to reproduce

Perform a search with "?" as one of the terms or as part of one of the terms

Expected behavior

Make "?" act as expected or clarify the expected behavior.

Thank you!

Additional information

No response

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

1 participant