fix(offlinetiles): wrong extraction of tiles name
Some checks failed
TrafficCue CI / check (push) Failing after 57s
TrafficCue CI / build (push) Successful in 49s

This commit is contained in:
Cfp
2025-08-11 09:29:42 +02:00
parent 1730d1c111
commit 04acffd996

View File

@ -195,7 +195,7 @@ export class Protocol {
},
};
}
const re = new RegExp(/tiles:\/\/(.+)/);
const re = new RegExp(/tiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/);
const result = params.url.match(re);
if (!result) {
throw new Error("Invalid Tiles protocol URL");