From 490cd7ee051926f3c143bc0b9873fa1bc7cd9828 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Wed, 10 Sep 2014 16:27:24 -0300 Subject: [PATCH] Fixes #85. Add support for Windows for upwards recursive .jsbeautifyrc See #37. --- lib/beautify.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/beautify.coffee b/lib/beautify.coffee index 1fe4a906d..8cc4a25cc 100644 --- a/lib/beautify.coffee +++ b/lib/beautify.coffee @@ -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)