Skip to content

Commit

Permalink
Merge pull request sass#822 from xzyfer/fix/dont-import-absolute-url
Browse files Browse the repository at this point in the history
Output the @import if it's a http or https path
  • Loading branch information
xzyfer committed Jan 7, 2015
2 parents ada6c37 + f303793 commit 8f07d6e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,15 @@ namespace Sass {
}
}

add_single_file(imp, import_path);
if (!unquote(import_path).substr(0, 7).compare("http://") ||
!unquote(import_path).substr(0, 8).compare("https://") ||
!unquote(import_path).substr(0, 2).compare("//"))
{
imp->urls().push_back(new (ctx.mem) String_Constant(pstate, import_path));
}
else {
add_single_file(imp, import_path);
}

}
else if (peek< uri_prefix >()) {
Expand Down

0 comments on commit 8f07d6e

Please # to comment.