Skip to content

Commit e3c4603

Browse files
committed
Fix coding style
Signed-off-by: Yukai Huang <[email protected]>
1 parent d857f0d commit e3c4603

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

public/js/extra.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export function finishView (view) {
459459
const content = $value.text()
460460
try {
461461
let position, zoom
462-
if (content.match(/^[\d\.\,\s]+$/)) {
462+
if (content.match(/^[\d.,\s]+$/)) {
463463
const [lng, lat, zoo] = content.split(',').map(parseFloat)
464464
zoom = zoo
465465
position = [lat, lng]
@@ -474,7 +474,7 @@ export function finishView (view) {
474474

475475
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
476476
attribution: '<a href="https://www.openstreetmap.org/">OSM</a>',
477-
maxZoom: 18,
477+
maxZoom: 18
478478
}).addTo(map)
479479
L.marker(position, {
480480
icon: L.icon({
@@ -489,7 +489,6 @@ export function finishView (view) {
489489
}
490490
})
491491

492-
493492
// image href new window(emoji not included)
494493
const images = view.find('img.raw[src]').removeClass('raw')
495494
images.each((key, value) => {

0 commit comments

Comments
 (0)