From d9316181dfaf667e600cde1c01efcb8a720dee26 Mon Sep 17 00:00:00 2001 From: mreyescdl Date: Fri, 15 Mar 2024 11:45:41 -0700 Subject: [PATCH] https://github.com/CDLUC3/mrt-doc/issues/1655 --- lib/merritt/atom/entry_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/merritt/atom/entry_processor.rb b/lib/merritt/atom/entry_processor.rb index b62d712..6e5e9a0 100644 --- a/lib/merritt/atom/entry_processor.rb +++ b/lib/merritt/atom/entry_processor.rb @@ -82,7 +82,7 @@ def add_component(obj, link) checksum = xpath_content(link, 'opensearch:checksum') digest = to_digest(checksum) - name = link['href'].sub(%r{^https?://}, '') + name = link['href'].sub(%r{^https?://}, '').sub(/\?changeToken=.*/, '') # TODO: do we even support prefetch any more? obj.add_component(uri, name: name, digest: digest, prefetch: true, prefetch_options: PREFETCH_OPTIONS)