mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40: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 =
|
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
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user