cloudinary / cloudinary_js

Cloudinary JavaScript library
MIT License
328 stars 224 forks source link

Fix Expression.normalize() #228

Closed YomesInc closed 4 years ago

YomesInc commented 4 years ago

Regular expression previously implemented in #219 did not work in browsers that do not support lookbehind in regular expressions.

This was fixed by separating the code to normalize operators and predefined variables separately without using lookbehind in the regex.

patrick-tolosa commented 4 years ago

@maoznir please review and merge

YomesInc commented 4 years ago

@maoznir Done 👍 Rebased on top of the latest from master.