diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-09-05 23:06:25 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-09-05 23:06:25 +1000 |
commit | 3f78cb81973f9c6c9a0754a555c939e81d24a1ff (patch) | |
tree | 3733c22051219b118ad5a09aff15838081be2820 /src/animation | |
parent | cfa5fd5b4138bdaea7b7afae3ccadac3735a3e7b (diff) | |
download | svg.js-3f78cb81973f9c6c9a0754a555c939e81d24a1ff.tar.gz svg.js-3f78cb81973f9c6c9a0754a555c939e81d24a1ff.zip |
fix path parsing (#1145)
Diffstat (limited to 'src/animation')
-rw-r--r-- | src/animation/Morphable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/Morphable.js b/src/animation/Morphable.js index 46dd166..3344480 100644 --- a/src/animation/Morphable.js +++ b/src/animation/Morphable.js @@ -2,7 +2,7 @@ import { Ease } from './Controller.js' import { delimiter, numberAndUnit, - pathLetters + isPathLetter } from '../modules/core/regex.js' import { extend } from '../utils/adopter.js' import Color from '../types/Color.js' @@ -19,7 +19,7 @@ const getClassForType = (value) => { if (Color.isColor(value)) { return Color } else if (delimiter.test(value)) { - return pathLetters.test(value) + return isPathLetter.test(value) ? PathArray : SVGArray } else if (numberAndUnit.test(value)) { |