Skip to content
Snippets Groups Projects
Commit 7451dfb7 authored by Anthony's avatar Anthony
Browse files

Allow local storage to annotate with other manifest

parent f05dc69e
No related branches found
No related tags found
No related merge requests found
Pipeline #1921 failed
......@@ -21,7 +21,7 @@ export class AnnotationManifestsAccordion extends Component {
/** Search if the annotation is a manifest. URL must be resolvable for the annotation. So the manifest url is added at the end of the id */
function searchManifestInID(id) {
const match = id.match(
/((http|https)\:\/\/[a-z0-9\/:%_+.,#?!@&=-]+)#((http|https)\:\/\/[a-z0-9\/:%_+.,#?!@&=-]+)/gi,
/((http|https|localStorage)\:\/\/[a-z0-9\/:%_+.,#?!@&=-]+)#((http|https)\:\/\/[a-z0-9\/:%_+.,#?!@&=-]+)/gi,
);
return match ? match[0].split('#').slice(-1) : null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment