Skip to content

Commit

Permalink
fix: save replace
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Mar 30, 2023
1 parent 230c31c commit ca10f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function parsePB(param) {
};
} else if (val.match(/^\d+z/)) { // decode `base64` to `degrees minutes seconds direction` to `lat lng`
let marker = atob(val.replace(/^\d+z/, ''));
marker.replace(/[^\d\s\-\.\'\"\°SNWE]/g, '');
marker = marker.replace(/[^\d\s\-\.\'\"\°SNWE]/g, '');
markers.push({ latlon: parseDMS(marker), label: '' });
} else if (val.match(/^\d+s/)) {
val = val.replace(/^\d+s/, '');
Expand Down

0 comments on commit ca10f48

Please sign in to comment.