-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[BUG]: Cannot quote/escape search queries #13399
Copy link
Copy link
Closed
Description
Checked for duplicates?
- This issue is not a duplicate
What are the steps to reproduce this bug?
- Create any card with a field containing
a"bc. For example, create a Basic card withFront->a"bc, andBack->abc back. - Attempt to search for
"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
AnkiDroid Version = 2.16alpha94
Android Version = 11
Manufacturer = samsung
Model = SM-A705W
Hardware = qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 11; SM-A705W Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/110.0.5481.153 Mobile Safari/537.36
ACRA UUID = 92deb424-7585-4976-afd5-787232deaf81
New schema = false
Scheduler = std2
Crash Reports Enabled = true
DatabaseV2 Enabled = true
(Optional) Anything else you want to share?
- It is true that the search
Front:a"bcwould 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>". - The query works on Anki Desktop, so I believe it is expected to work on AnkiDroid as well.
- I didn't test it on the latest stable release, only on the latest alpha release.
- As random workarounds, I tried queries such as
"Front:a\\"bc","Front:a\\\"bc", and`Front:a"bc`. Unfortuately, none of them worked.
Research
- I am reporting a bug specific to AnkiDroid (Android app)
- I have checked the manual and the FAQ and could not find a solution to my issue
- (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels