File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3131 "lint:js" : " ./node_modules/.bin/eslint --ext .js,.jsx ." ,
3232 "test" : " npm run lint && npm run jest"
3333 },
34- "version" : " 0.7.11-8 " ,
34+ "version" : " 0.7.11-14 " ,
3535 "dependencies" : {
3636 "auth0-js" : " ^6.8.4" ,
3737 "config" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function removeDecimal(num) {
1313}
1414
1515function toAcurateFixed ( num , decimal ) {
16- const re = new RegExp ( `^-?\\d+(?:.\\d{0,${ ( decimal - 1 ) } })?` ) ;
16+ const re = new RegExp ( `^-?\\d+(?:.\\d{0,${ ( decimal ) } })?` ) ;
1717 return num . toString ( ) . match ( re ) [ 0 ] ;
1818}
1919
@@ -24,7 +24,7 @@ function toFixed(num, decimal) {
2424 const result = _ . toFinite ( toAcurateFixed ( num , decimal ) ) ;
2525 const integerResult = _ . toFinite ( removeDecimal ( num ) ) ;
2626
27- if ( _ . isInteger ( integerResult ) ) {
27+ if ( _ . isInteger ( result ) ) {
2828 return integerResult ;
2929 }
3030 return result ;
You can’t perform that action at this time.
0 commit comments