From 08efe8935c6be172601641f5ddb412376ed60215 Mon Sep 17 00:00:00 2001 From: Joel Santirso Date: Wed, 2 Jul 2014 12:49:25 +0200 Subject: [PATCH] Adapt format --- decimal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decimal.js b/decimal.js index d1ee6a5..a61d529 100644 --- a/decimal.js +++ b/decimal.js @@ -1279,7 +1279,7 @@ var arr = this.toFixed(dp).split('.'); return arr[0].replace( /\B(?=(\d{3})+$)/g, sep1 == null ? ',' : sep1 + '' ) + - ( arr[1] ? (dsep == null ? '.' : dsep) + ( sep2 ? arr[1].replace( /\d{5}\B/g, '$&' + sep2 ) : arr[1] ) : '' ); + ( arr[1] ? ( dsep == null ? '.' : dsep ) + ( sep2 ? arr[1].replace( /\d{5}\B/g, '$&' + sep2 ) : arr[1] ) : '' ); };