mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[*Theme] Fix imports starting with //
This commit is contained in:
parent
fc795a700b
commit
11424b18eb
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ export default async (manifest, _content, repo) => {
|
|||
|
||||
let imports = content.match(/@import url\(['"`]?(.*)['"`]?\);/g) || [];
|
||||
for (const x of imports) {
|
||||
const url = x.replace(/@import url\(['"`]?/, '').replace(/['"`]?\);/, '');
|
||||
let url = x.replace(/@import url\(['"`]?/, '').replace(/['"`]?\);/, '');
|
||||
if (url.startsWith('//')) url = 'https:' + url;
|
||||
|
||||
console.log(x, url);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue