diff --git a/index.js b/index.js index dbac338..f7749f0 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ function parse (input) { } function multipoint () { - if (!$(/^(multipoint)/i)) return null; + if (!$(/^(multipoint(\sz)?)/i)) return null; white(); var newCoordsFormat = _ .substring(_.indexOf('(') + 1, _.length - 1) @@ -142,7 +142,7 @@ function parse (input) { } function multilinestring () { - if (!$(/^(multilinestring)/i)) return null; + if (!$(/^(multilinestring(\sz)?)/i)) return null; white(); var c = multicoords(); if (!c) return null; @@ -178,7 +178,7 @@ function parse (input) { } function multipolygon () { - if (!$(/^(multipolygon)/i)) return null; + if (!$(/^(multipolygon(\sz)?)/i)) return null; white(); var c = multicoords(); if (!c) return null;