Improve parameter parsing
This commit is contained in:
parent
3c61696bbd
commit
baf6b15e17
1 changed files with 2 additions and 3 deletions
|
@ -66,9 +66,8 @@ async def search(
|
|||
min_diff = 0.00
|
||||
max_diff = 5.00
|
||||
|
||||
params = re.findall("[a-z\-\_]*:[a-zA-Z0-9_\-]*", q)
|
||||
search = re.sub("[a-z\-\_]*:[a-zA-Z0-9_\-]*", "", q)
|
||||
|
||||
params = re.findall("[a-z\-\_]*:[a-zA-Z0-9._\-]*", q)
|
||||
search = re.sub("\S[a-z\-\_]*:[a-zA-Z0-9._\-]*", "", q).lstrip().rstrip()
|
||||
for i in params:
|
||||
split = i.split(':')
|
||||
if split[0] == "author":
|
||||
|
|
Loading…
Reference in a new issue