tedious / JShrink

Javascript Minifier built in PHP
http://www.tedivm.com
BSD 3-Clause "New" or "Revised" License
751 stars 152 forks source link

weird behavior with the ' { ' #56

Closed martinclavell closed 7 years ago

martinclavell commented 8 years ago

I still don't understand why are those \n before and after each { } there's any way to remove it?

... else if(dtMonth<1||dtMonth>12) {return false;} else if(dtDay<1||dtDay>31) {return false;} else if((dtMonth===4||dtMonth===6||dtMonth===9||dtMonth===11)&&dtDay===31) {return false;} else if(dtMonth===2) {var isleap=(dtYear%4===0&&(dtYear%100!==0||dtYear%400===0));if(dtDay>29||(dtDay===29&&!isleap)) {return false;}} return true;}} else ...