From 3b44c536c2ff3ca460bb7c7bd2c0f70268ecc60c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 19 Jun 2015 22:52:35 +0100 Subject: [PATCH] Normalize paths to forward slashes before comparing, fixes #1769 --- cli/lib/compass/sass_compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/lib/compass/sass_compiler.rb b/cli/lib/compass/sass_compiler.rb index 068471b739..bc0d0dbdf5 100644 --- a/cli/lib/compass/sass_compiler.rb +++ b/cli/lib/compass/sass_compiler.rb @@ -133,7 +133,7 @@ def corresponding_css_file(sass_file) end def stylesheet_name(sass_file) - if sass_file.index(config.sass_path) == 0 + if sass_file.gsub('\\', '/').index(config.sass_path.gsub('\\', '/')) == 0 sass_file[(config.sass_path.length + 1)..-6].sub(/\.css$/,'') else raise Compass::Error, "Individual stylesheets must be in the sass directory."