Skip to content

Commit

Permalink
refine regex to better capture zip url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey04 committed Jun 27, 2024
1 parent cbea1d4 commit b92e911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umake/frameworks/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def parse_download_link(self, line, in_download):
url = None
if '{}.zip'.format(self.arch_trans[get_current_arch()]) in line:
in_download = True
p = re.search(r'.*href=(.*\.zip)', line)
p = re.search(r'.*href=\"?([^\s]+\.zip)', line)
with suppress(AttributeError):
url = p.group(1)
bin = re.search(r'(Godot.*)\.zip', url)
Expand Down

0 comments on commit b92e911

Please sign in to comment.