-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[BUG]: Cannot quote/escape search queries #13399
Comments
Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing |
Looking into the issue, I believe this function has to be reworked to be more similar to Anki's search parser.rs in order to support the functionality. (I believe that's the correct file/function, but I can't really read Rust code unfortunately) |
Have you tried using the Rust backend in the advanced settings? |
It was as simple as that, thank you so much! |
Checked for duplicates?
What are the steps to reproduce this bug?
a"bc
. For example, create a Basic card withFront
->a"bc
, andBack
->abc back
."Front:a\"bc"
Expected behaviour
The card should show in the results screen.
Actual behaviour
The card is not shown in the results screen.
Debug info
(Optional) Anything else you want to share?
Front:a"bc
would work. However, if the field contains a space, i.e.<span class="a">abc</span>
, it becomes impossible to search for the exact string with say,"Front:<span class=\"a\">abc</span>"
."Front:a\\"bc"
,"Front:a\\\"bc"
, and`Front:a"bc`
. Unfortuately, none of them worked.Research
The text was updated successfully, but these errors were encountered: