Skip to content

Commit 5b5d041

Browse files
committed
fix(geo-map): fix west longitude and south latitude not parsed correctly
Signed-off-by: BoHong Li <raccoon@hackmd.io>
1 parent 66ec25d commit 5b5d041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/extra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export function finishView (view) {
450450

451451
try {
452452
let position, zoom
453-
if (content.match(/^[\d.,\s]+$/)) {
453+
if (content.match(/^[-\d.,\s]+$/)) {
454454
const [lng, lat, zoo] = content.split(',').map(parseFloat)
455455
zoom = zoo
456456
position = [lat, lng]

0 commit comments

Comments
 (0)