forked from MapComplete/MapComplete
Small fix to mapillary image loading + addition of test
This commit is contained in:
parent
0069214f32
commit
8097486ffe
4 changed files with 38 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue