aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-09-05 23:06:25 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-09-05 23:06:25 +1000
commit3f78cb81973f9c6c9a0754a555c939e81d24a1ff (patch)
tree3733c22051219b118ad5a09aff15838081be2820 /src/modules
parentcfa5fd5b4138bdaea7b7afae3ccadac3735a3e7b (diff)
downloadsvg.js-3f78cb81973f9c6c9a0754a555c939e81d24a1ff.tar.gz
svg.js-3f78cb81973f9c6c9a0754a555c939e81d24a1ff.zip
fix path parsing (#1145)
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/core/regex.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/core/regex.js b/src/modules/core/regex.js
index c32ac93..a18c692 100644
--- a/src/modules/core/regex.js
+++ b/src/modules/core/regex.js
@@ -34,19 +34,5 @@ export const isImage = /\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i
// split at whitespace and comma
export const delimiter = /[\s,]+/
-// The following regex are used to parse the d attribute of a path
-
-// Matches all hyphens which are preceeded by something but not an exponent
-export const hyphen = /([^e])-/gi
-
-// Replaces and tests for all path letters
-export const pathLetters = /[MLHVCSQTAZ]/gi
-
-// yes we need this one, too
+// Test for path letter
export const isPathLetter = /[MLHVCSQTAZ]/i
-
-// matches 0.154.23.45
-export const numbersWithDots = /((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi
-
-// matches .
-export const dots = /\./g