bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-04-23 20:25:05 +03:00
parent 5503686e9e
commit 6e85012121
2 changed files with 4 additions and 6 deletions

View File

@ -20,11 +20,9 @@ module.TAB_SIZE = 4
var normalizeIndent = var normalizeIndent =
module.normalizeIndent = module.normalizeIndent =
function(text, tab_size){ function(text, tab_size){
text = TAB_SIZE > 0 ? tab_size = tab_size || TAB_SIZE
text.replace(/\t/g, text = tab_size > 0 ?
' '.repeat(tab_size === undefined ? text.replace(/\t/g, ' '.repeat(tab_size))
tab_size
: TAB_SIZE))
: text : text
var lines = text.split(/\n/) var lines = text.split(/\n/)
var l = lines var l = lines

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-object", "name": "ig-object",
"version": "2.2.1", "version": "2.2.2",
"description": "", "description": "",
"main": "object.js", "main": "object.js",
"scripts": { "scripts": {