|
@@ -866,7 +866,7 @@ class SVGLoader extends Loader {
|
|
|
|
|
|
}
|
|
|
|
|
|
- const regex = /(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g;
|
|
|
+ const regex = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g;
|
|
|
|
|
|
const path = new ShapePath();
|
|
|
|
|
@@ -901,7 +901,7 @@ class SVGLoader extends Loader {
|
|
|
|
|
|
}
|
|
|
|
|
|
- const regex = /(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g;
|
|
|
+ const regex = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g;
|
|
|
|
|
|
const path = new ShapePath();
|
|
|
|