mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
add license and client apis
This commit is contained in:
parent
ecff2aca52
commit
aac959936c
19 changed files with 1004 additions and 89 deletions
|
@ -3,5 +3,5 @@ import { encodeUrl } from "./url"
|
|||
export function rewriteCss(css: string, origin?: URL) {
|
||||
css = css.replace(/(?<=url\("?'?)[^"'][\S]*[^"'](?="?'?\);?)/g, (match) => encodeUrl(match, origin));
|
||||
|
||||
return "/* intercepted by scramjet 🐳 */" + css;
|
||||
return css;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue