Skip to content

Commit 0c91938

Browse files
authored
Merge pull request #1437 from hackmdio/fix/geo-map-not-support-minus
Fix west longitude and south latitude not parsed correctly in geo map
2 parents 66ec25d + 5b5d041 commit 0c91938

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)