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

strict field regex #16

Merged
merged 2 commits into from
Mar 18, 2024
Merged

strict field regex #16

merged 2 commits into from
Mar 18, 2024

Conversation

dastra-mak
Copy link
Contributor

In makandracards we noticed that searching for a namespaced class leads to empty results, e.g. ActiveRecord::Base https://makandracards.com/makandra/search?query=ActiveRecord%3A%3ABase

This is caused by minidusen parsing it as a field (field ActiveRecord, value :Base). The more natural thing would be to parse it as text.
I suggest to use a more strict field regex here.

@triskweline
Copy link
Member

LGTM 👍

@dastra-mak dastra-mak merged commit 8926626 into master Mar 18, 2024
12 checks passed
@dastra-mak dastra-mak deleted the dst/fix-field-query branch March 18, 2024 13:59
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

Successfully merging this pull request may close these issues.

2 participants