diff --git a/public/js/extra.js b/public/js/extra.js index 0c39f31b..eca85bb8 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -459,7 +459,7 @@ export function finishView (view) { const content = $value.text() try { let position, zoom - if (content.match(/^[\d\.\,\s]+$/)) { + if (content.match(/^[\d.,\s]+$/)) { const [lng, lat, zoo] = content.split(',').map(parseFloat) zoom = zoo position = [lat, lng] @@ -474,7 +474,7 @@ export function finishView (view) { L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'OSM', - maxZoom: 18, + maxZoom: 18 }).addTo(map) L.marker(position, { icon: L.icon({ @@ -489,7 +489,6 @@ export function finishView (view) { } }) - // image href new window(emoji not included) const images = view.find('img.raw[src]').removeClass('raw') images.each((key, value) => {