Skip to content

Commit

Permalink
Merge pull request #27 from gmerritt/main
Browse files Browse the repository at this point in the history
Leading and trailing blank space are now removed from user gs:// url …
  • Loading branch information
gmerritt authored Mar 7, 2024
2 parents f43bb48 + 886aff0 commit 627a291
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hartsfield/api/datahub_archive_url_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def fetch_url_direct():

params = request.get_json()
gs_source_url = params.get('gs_source_url')
gs_source_url = gs_source_url.strip()
if not re.match(r'gs://.{3,}/.+', gs_source_url):
error_message = 'The submitted data \"' + gs_source_url + '\" is not a valid gs_source_url.'
v = {'response': error_message, 'status': 'error'}
Expand Down

0 comments on commit 627a291

Please sign in to comment.