Skip to content

Commit

Permalink
added clearer comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSharon committed May 2, 2021
1 parent 8f8f152 commit 1b7d01c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def _get_filename(self, response):
file_name = matching.group('filename')

# fallback, couldn't find file name regular URL, check gitlab structure (filename in [-2] position)
# example for gitlab URL structure - '/repository/files/testfile%2Eps1/raw?ref=master'
if not file_name:
file_name_from_url = urllib.parse.unquote(response.url.split('/')[-2])
matching = re.match(self.filename_pattern, file_name_from_url)
Expand Down

0 comments on commit 1b7d01c

Please sign in to comment.