mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-26 12:45:48 +03:00
[PR #851] [MERGED] Fix handling of bangs #994
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#994
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/benbusby/whoogle-search/pull/851
Author: @jacr13
Created: 9/23/2022
Status: ✅ Merged
Merged: 9/30/2022
Merged by: @benbusby
Base:
main← Head:fix-bangs📝 Commits (5)
15f6e43Fix handling of bangs090ab5aFix typos and switch ! check to operator5b800c5allow user to enter bang everywhere in queryfdbdddaremove test with ! after bang5d06864remove development files📊 Changes
2 files changed (+34 additions, -25 deletions)
View changed files
📝
app/utils/bangs.py(+34 -20)📝
test/test_routes.py(+0 -5)📄 Description
Fixes: #830
[edit] Finally, I have changed the implementation to work if the bang is at anyplace in the query.
I have also added a check to not spend time looking for an operator if a "!" is not present in the query.
I don't think we should allow the bang with the ! at the end, since this may cause some conflicts like the issue cited before, where the ! is after a word in the query, which is natural in most languages.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.