mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Fixed Feeling lucky failure
This commit is contained in:
parent
c4ea430629
commit
0fde332d16
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class Search:
|
|||
pass
|
||||
|
||||
# Strip '!' for "feeling lucky" queries
|
||||
if match := re.search("(^|\s)!($|\s)", q):
|
||||
if match := re.search(r"(^|\s)!($|\s)", q):
|
||||
self.feeling_lucky = True
|
||||
start, end = match.span()
|
||||
self.query = " ".join([seg for seg in [q[:start], q[end:]] if seg])
|
||||
|
|
|
|||
Loading…
Reference in a new issue