Skip to content

Commit

Permalink
fix url regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeN220 committed Aug 17, 2023
1 parent 2e20638 commit 63bb9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/market/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def search(self, category: str, search_params: str) -> dict:


def parse_search_data(search_url: str) -> Optional[Tuple[str, str]]:
parse = re.search(r"https://lzt.market/([\w\-]+)/\?(.+)", search_url)
parse = re.search(r"https://lzt.market/([\w\-]+)/(.+)", search_url)
if not parse:
raise TypeError("Format search URL is invalid")
category, search_params = parse.groups()
Expand Down

0 comments on commit 63bb9da

Please sign in to comment.