From 8704ed9fa5b1ab55258fcb59f80e031829b4edee Mon Sep 17 00:00:00 2001 From: Jet Simon Date: Wed, 27 Sep 2023 12:24:22 -0700 Subject: [PATCH] Make mapping code more robust --- js/base.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/base.js b/js/base.js index 567ad28..2cdb8c9 100644 --- a/js/base.js +++ b/js/base.js @@ -361,7 +361,9 @@ class TCTData { getMapForPreview(svg) { - const pathsRegex = //g; + + + const pathsRegex = //g; const idRegex = / id[ \t]*=[ \t]*"(.*)"/g; const dRegex = / d[ \t]*=[ \t]*"(.*)"/g; @@ -448,7 +450,7 @@ class TCTData { const svg = this.jet_data.mapping_data.mapSvg; - const pathsRegex = //g; + const pathsRegex = //g; const idRegex = / id[ \t]*=[ \t]*"(.*)"/g; const dRegex = / d[ \t]*=[ \t]*"(.*)"/g;