Fixes #85. Add support for Windows for upwards recursive .jsbeautifyrc

See #37.
This commit is contained in:
Glavin Wiechert 2014-09-10 16:27:24 -03:00
parent 3784722068
commit 490cd7ee05
1 changed files with 1 additions and 1 deletions

View File

@ -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)