Skip to content

Commit

Permalink
Merge pull request #52 from QualiSystems/fix_178762_script_filename_i…
Browse files Browse the repository at this point in the history
…ssues

changes file pattern for script downloader
  • Loading branch information
johnathanvidu committed Jan 3, 2021
2 parents 7778b00 + f320f4b commit 672ee31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, logger, cancel_sampler):
"""
self.logger = logger
self.cancel_sampler = cancel_sampler
self.filename_pattern = "(?P<filename>\s*[\w,\s-]+\.(sh|bash|ps1)\s*)"
self.filename_pattern = r'(?P<filename>^.*\.(sh|bash|ps1)$)'
self.filename_patterns = {
"content-disposition": "\s*((?i)inline|attachment|extension-token)\s*;\s*filename=" + self.filename_pattern,
"x-artifactory-filename": self.filename_pattern
Expand Down

0 comments on commit 672ee31

Please sign in to comment.