Small fix to mapillary image loading + addition of test

This commit is contained in:
Pieter Vander Vennet 2021-04-06 16:12:44 +02:00
parent 0069214f32
commit 8097486ffe
4 changed files with 38 additions and 3 deletions

View file

@ -81,7 +81,7 @@ export class ImageSearcher extends UIEventSource<{ key: string, url: string }[]>
let mapillary = tags.mapillary;
const prefix = "https://www.mapillary.com/map/im/";
let regex = /https?:\/\/www.mapillary.com\/app\/.*&pKey=([^&]*)/
let regex = /https?:\/\/www.mapillary.com\/app\/.*pKey=([^&]*).*/
let match = mapillary.match(regex);
if (match) {
mapillary = match[1];