From e3c460308c207ab6d98f32c7c2ea2a1ac598d7e8 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Sun, 29 Sep 2019 09:28:11 +0800 Subject: [PATCH] Fix coding style Signed-off-by: Yukai Huang --- public/js/extra.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) => {