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 =
module.normalizeIndent =
function(text, tab_size){
text = TAB_SIZE > 0 ?
text.replace(/\t/g,
' '.repeat(tab_size === undefined ?
tab_size
: TAB_SIZE))
tab_size = tab_size || TAB_SIZE
text = tab_size > 0 ?
text.replace(/\t/g, ' '.repeat(tab_size))
: text
var lines = text.split(/\n/)
var l = lines

View File

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