Skip to content

Commit

Permalink
Revert "Fix toTokenizedValue() execution with URL values (stitchesjs#…
Browse files Browse the repository at this point in the history
…1066)" (stitchesjs#1107)

This reverts commit aa59b01.
  • Loading branch information
hadihallak authored Oct 17, 2022
1 parent 38640df commit f1534b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/convert/toTokenizedValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const toTokenizedValue = (
/** @type {string} */
scale,
) => value.replace(
/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|(?<!url\(.*)--|--(?!.*\)))([$\w-]+)/g,
/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,
($0, direction, multiplier, separator, token) => (
separator == "$" == !!multiplier
? $0
Expand Down
33 changes: 0 additions & 33 deletions packages/core/tests/issue-986.js

This file was deleted.

0 comments on commit f1534b0

Please sign in to comment.