augustine-jkmap 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4775,7 +4775,7 @@ function parseWKTToPaths(wkt) {
4775
4775
  const upper = wkt.trim().toUpperCase();
4776
4776
  let coordsPart;
4777
4777
  if (upper.startsWith("MULTILINESTRING")) {
4778
- coordsPart = wkt.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)?.[1];
4778
+ coordsPart = wkt.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)[1];
4779
4779
  if (!coordsPart) return null;
4780
4780
  const lines = coordsPart.split(/\)\s*,\s*\(/);
4781
4781
  return lines.map((line) => {
@@ -4783,7 +4783,7 @@ function parseWKTToPaths(wkt) {
4783
4783
  return line.split(",").map((pt) => pt.trim().split(/\s+/).map(Number));
4784
4784
  });
4785
4785
  } else if (upper.startsWith("LINESTRING")) {
4786
- coordsPart = wkt.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)?.[1];
4786
+ coordsPart = wkt.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)[1];
4787
4787
  if (!coordsPart) return null;
4788
4788
  return [
4789
4789
  coordsPart.split(",").map((pt) => pt.trim().split(/\s+/).map(Number)),