attr replace fix

This commit is contained in:
William Lima 2024-06-18 22:05:41 -01:00
parent 134f72948c
commit 32f29024f8

View File

@ -159,7 +159,8 @@ export function Map({
}
return attr.replace(
/\{attribution.(\w*)\}/g,
function (match, attributionName) {
function (match: any, attributionName: string) {
match;
return attributionReplacer(
providers[attributionName].options.attribution
);