Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize paths to forward slashes before comparing #1984

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/lib/compass/sass_compiler.rb
Expand Up @@ -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."
Expand Down