We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11393ce commit 95e5fcfCopy full SHA for 95e5fcf
1 file changed
src/transformers/inline_url.rs
@@ -41,8 +41,9 @@ fn read_file_sync(path: &Path) -> Option<Vec<u8>> {
41
42
fn parse_url(input: &str) -> nom::IResult<&str, &str> {
43
let unquoted = delimited(tag("url("), is_not(")"), tag(")"));
44
- let quoted = delimited(tag("url(\""), is_not("\""), tag("\")"));
45
- alt((quoted, unquoted))(input)
+ let dblquoted = delimited(tag("url(\""), is_not("\""), tag("\")"));
+ let sglquoted = delimited(tag("url('"), is_not("'"), tag("')"));
46
+ alt((sglquoted, dblquoted, unquoted))(input)
47
}
48
49
fn into_data_uri<'a>(path: &Path) -> Option<Cow<'a, str>> {
0 commit comments