Skip to content

Commit ab2d1d0

Browse files
authored
Merge pull request #116 from ImagingDataCommons/fix-s3-url
BUG: use trim to remove any extraneous spaces while parsing s3 url in manifest
2 parents e53e79f + 206118c commit ab2d1d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

idc_index/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def _validate_update_manifest_and_get_download_size(
665665
SELECT
666666
manifest_cp_cmd,
667667
REGEXP_EXTRACT(manifest_cp_cmd, '(?:.*?\\/){{3}}([^\\/?#]+)', 1) AS manifest_crdc_series_uuid,
668-
REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '') AS s3_url,
668+
REGEXP_EXTRACT(manifest_cp_cmd, 's3://\\S+') AS s3_url,
669669
FROM
670670
manifest_df )
671671
SELECT

0 commit comments

Comments
 (0)