ankitects / ankitects/anki

Do not auto-remove double quotes from re: searches

Open
#3,547 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
72

Description

> Is your feature request related to a problem? Please describe.
> When I use regex to search through my notes, I switch between simple and complex syntax. What I noticed is that my double quotes around "re:" are removed when seemingly unnecessary. The problem then is that I have to keep re-adding them every time I want to match \d or anything a bit more complex.

Originally reported on https://forums.ankiweb.net/t/do-not-auto-remove-double-quotes-from-re-searches/50640/11

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reproducing a regex search containing quoted "re:" and a pattern such as \d, then trace the search handling that removes apparently unnecessary quotes. Done means switching between simple and complex syntax no longer strips quotes needed by regex searches.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.