mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-10-14 11:38:18 +00:00
fix xml output for osm attributes
This commit is contained in:
@@ -96,8 +96,9 @@ function getTags(message: string): { [key: string]: string } {
|
||||
const fields = message.split(" ");
|
||||
let tags: { [key: string]: string } = {};
|
||||
for (let i = 0; i < fields.length; i++) {
|
||||
let tag = fields[i].split("=");
|
||||
tags[tag[0]] = tag[1];
|
||||
let [key, value] = fields[i].split("=");
|
||||
key = key.replace(/:/g, '_');
|
||||
tags[key] = value;
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
Reference in New Issue
Block a user