You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matches image/format and also image//format is this the expected behaviour?
If it is correct I would consider escaping the forward-slash as suggested here because this could cause an error when using the pattern with Javascript. The resulting pattern would be:
"pattern": "^[a-z][a-z]*\/.*$"
Otherwise, the following pattern does not match image//format but only image/format
Hello,
thanks again for this schema, extremely helpful, just wondering the following regex pattern:
presentation-validator/schema/iiif_3_0.json
Line 50 in d4d376e
matches
image/format
and alsoimage//format
is this the expected behaviour?If it is correct I would consider escaping the forward-slash as suggested here because this could cause an error when using the pattern with Javascript. The resulting pattern would be:
"pattern": "^[a-z][a-z]*\/.*$"
Otherwise, the following pattern does not match
image//format
but onlyimage/format
^[a-z][a-z]*(?<!\/)\/(?!\/).*$
some tests here
The text was updated successfully, but these errors were encountered: