Skip to content

Commit

Permalink
Fix bad reference to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhefner committed Aug 25, 2019
1 parent aacfb53 commit 9207dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const calculateValue = (startValue, endValue, ease, duration, progress) => {
}

if (typeof startValue === 'string' || typeof endValue === 'string') {
const [start, unit] = CSS_UNIT.match(startValue);
const [end] = CSS_UNIT.match(endValue);
const [start, unit] = CSS_UNIT_REGEX.match(startValue);
const [end] = CSS_UNIT_REGEX.match(endValue);
}

const diff = startValue > endValue
Expand Down

0 comments on commit 9207dac

Please sign in to comment.