Skip to content

Commit 7468ac6

Browse files
committed
Improve url argument parsing
1 parent aec85f2 commit 7468ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,7 @@ namespace Sass {
17731773
prefix = std::string(lexed);
17741774
}
17751775

1776+
lex < optional_spaces >();
17761777
String* url_string = parse_url_function_argument();
17771778

17781779
std::string suffix("");
@@ -1806,7 +1807,6 @@ namespace Sass {
18061807
uri = lexed.to_string();
18071808
}
18081809

1809-
lex < css_whitespace >();
18101810
if (peek< exactly< hash_lbrace > >()) {
18111811
const char* pp = position;
18121812
// TODO: error checking for unclosed interpolants

0 commit comments

Comments
 (0)