galacemiguel / fluid-system

Fluid System is a style props function transformer for generating fluid styles. 💦
MIT License
145 stars 3 forks source link

Lookbehind regex cross-browser support #3

Closed hazem3500 closed 4 years ago

hazem3500 commented 4 years ago

in the utils.js there is a Lookbehind regex which isn't support it on IE, edge, firefox and safari

its on line 17

return measurement.match(/(?<=[0-9])[^0-9]+$/)[0];

https://caniuse.com/#feat=js-regexp-lookbehind