mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5503686e9e
commit
6e85012121
@ -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
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-object",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user