bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

update 'addCommas' function #221

Open DarkoNedic opened 4 years ago

DarkoNedic commented 4 years ago

got rid of the while loop and regex is applied only once now. also the code got shorter