Commit 4c34d1f6 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

IRIMetadata.parse ne retourne pas de tableau pour les IRI qui n'en n'ont qu'un.

parent 884c6a70
......@@ -170,6 +170,9 @@ export class IRIMetadata<P extends IRIParameters> {
if (!matches) {
throw new Error(`Invalid path: ${path} does not match ${this.capturePattern}`);
}
if (matches.length == 2) {
return matches[1] as any;
}
return matches.slice(1) as any;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment