Commit 1320d7fa authored by julien's avatar julien

updated test to avoid false positives

parent a9a99aef
......@@ -174,7 +174,7 @@ class Sheet {
csstree.walk(ast, {
visit: "Url",
enter: (node, item, list) => {
if (!node.value.value.includes("data:")) {
if (!node.value.value.startsWith("\"data:")) {
let href = node.value.value.replace(/["']/g, "");
let url = new URL(href, this.url);
node.value.value = url.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment