Skip to content

Commit

Permalink
Merge pull request #116 from ImagingDataCommons/fix-s3-url
Browse files Browse the repository at this point in the history
BUG: use trim to remove any extraneous spaces while parsing s3 url in manifest
  • Loading branch information
fedorov authored Aug 21, 2024
2 parents e53e79f + 206118c commit ab2d1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idc_index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def _validate_update_manifest_and_get_download_size(
SELECT
manifest_cp_cmd,
REGEXP_EXTRACT(manifest_cp_cmd, '(?:.*?\\/){{3}}([^\\/?#]+)', 1) AS manifest_crdc_series_uuid,
REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '') AS s3_url,
REGEXP_EXTRACT(manifest_cp_cmd, 's3://\\S+') AS s3_url,
FROM
manifest_df )
SELECT
Expand Down

0 comments on commit ab2d1d0

Please sign in to comment.