Skip to content

Commit

Permalink
Fixes #85. Add support for Windows for upwards recursive .jsbeautifyrc
Browse files Browse the repository at this point in the history
See #37.
  • Loading branch information
Glavin001 committed Sep 10, 2014
1 parent 3784722 commit 490cd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 490cd7e

Please sign in to comment.