Skip to content
Snippets Groups Projects
Commit 54c7fff1 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

regex patch (negative lookahead) #22

parent 4bbc2377
No related merge requests found
Pipeline #357083 passed with stages
in 3 minutes and 21 seconds
......@@ -2,8 +2,7 @@
import OpenSeadragon, {TiledImage} from "openseadragon";
import {tokenStorage} from "@/services/storageService";
const iiifEndPoint = import.meta.env.VITE_APP_AXIOS_BASE_URL.replace(/api/, 'iiif/3')
const iiifEndPoint = import.meta.env.VITE_APP_AXIOS_BASE_URL.replace(/(api)(?!.*\1)/, 'iiif/3')
//clone initial OSD makeAjaxRequest
const initialMakeAjaxRequest = OpenSeadragon.makeAjaxRequest.bind({});
......
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