node-iiif icon indicating copy to clipboard operation
node-iiif copied to clipboard

The Processor now requires URLs in a specific format

Open francescopioscognamiglio opened this issue 1 year ago • 7 comments

Hi all, I found an interesting issue while using the module.

Configuration

I'm using the latest version of the iiif-processor module: 4.0.4.

Problem

I got an error when creating a new Processor object passing a URL with this pattern: https://<domain>/.*/iiif/2/.*. It seems that it is no longer possible to use this kind of pattern. Going deeper, I see that a regex requires that between the domain and the /iiif/2 part there are no extra strings here https://github.com/samvera/node-iiif/blob/v4.0.4/src/processor.js#L19.

Thanks for bringing this issue to my attention. I'll take a look at it and see if I can come up with a solution. It might be as easy as removing the beginning-of-string anchor (^) from the regex.

mbklein avatar Apr 22 '24 18:04 mbklein