Skip to content

Commit

Permalink
merge: #35 from ginger/integer-error
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni authored Mar 7, 2024
2 parents 30da5ea + cd14153 commit 580962c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/iiif/builders/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def match_and_build(self, identifier: str) -> Optional[dict]:
required format
:raise: IIIFBuildError if anything goes wrong after the identifier is matched
"""
regex = re.compile('resource/(?P<resource_id>.+?)/record/(?P<record_id>.+)$')
regex = re.compile(
'resource/(?P<resource_id>.+?)/record/(?P<record_id>[^/]+).*$'
)
match = regex.match(identifier)
if not match:
return None
Expand Down

0 comments on commit 580962c

Please sign in to comment.