Skip to content

Conversation

@YomesInc
Copy link
Contributor

normalize_expression() will no longer transform predefined variables into their shortened form if they are preceded by an ampersand (meaning they are variables).

For example: $width will not be transformed into $w.

💡 Note our comments in the PR for cloudinary_npm which would also apply here. The solution proposed here will not work on old browsers that do not support lookbehind in regular expressions.

@YomesInc YomesInc changed the title Fix normalize_expression when variable is named like a keyword, like "$width" Fix normalize_expression when variable is named like a keyword (e.g., "$width") Apr 11, 2020
@patrick-tolosa patrick-tolosa requested review from a user and patrick-tolosa April 22, 2020 14:16
@ghost ghost merged commit b46d8d6 into master May 5, 2020
@ghost ghost deleted the fix/normalize-expression-should-ignore-predefined-variables branch May 5, 2020 06:38
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants