Commit 27fe900a authored by Fred Chasen's avatar Fred Chasen

Fix URL replacement regex

parent 24868e13
......@@ -136,7 +136,7 @@ class Sheet {
csstree.walk(ast, {
visit: 'Url',
enter: (node, item, list) => {
let href = node.value.value.replace(/["|']/g, '');
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