From 3f78cb81973f9c6c9a0754a555c939e81d24a1ff Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sat, 5 Sep 2020 23:06:25 +1000 Subject: fix path parsing (#1145) --- src/animation/Morphable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/animation/Morphable.js') 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)) { -- cgit v1.2.3