Fixes #85. Add support for Windows for upwards recursive .jsbeautifyrc
See #37.
This commit is contained in:
parent
3784722068
commit
490cd7ee05
|
@ -249,7 +249,7 @@ beautify = ->
|
|||
projectOptions = []
|
||||
p = path.dirname(editedFilePath)
|
||||
# Check if p is root (top directory)
|
||||
while p isnt "/"
|
||||
while p isnt path.resolve(p,"../")
|
||||
# Get config for p
|
||||
pf = path.join(p, "FAKEFILENAME")
|
||||
pc = getConfig(pf, false)
|
||||
|
|
Loading…
Reference in New Issue