mhulse / rex

On, Wildfire, on!
http://mhulse.github.io/rex/demo/
Apache License 2.0
4 stars 0 forks source link

Strip leading zeros from floating-point numbers #87

Closed mhulse closed 11 years ago

mhulse commented 11 years ago

I can't think of any situation where having a leading zero is required.

Discussion here:

https://github.com/nex3/sass/issues/847

For now, I might try to use grunt's concat callback to strip the 0.{any number of integers}.

mhulse commented 11 years ago

I've thrown in a regex patch into my Gruntfile.js that looks like:

//str.replace(/0\./g, '.');
str.replace(/0(\.)/g, '$1');

I need to do some testing, but based on cursory glances at the generated code, everything looks good.

Will close this issue on next commit.