diff --git a/scripts/liblab-gen.ts b/scripts/liblab-gen.ts index 9075134f..c2f35090 100644 --- a/scripts/liblab-gen.ts +++ b/scripts/liblab-gen.ts @@ -21,7 +21,7 @@ async function writeJSON(path: string, data: any) { } async function readFile(path: string): Promise { - if (/^http?s:\/\//.test(path)) { + if (/^https?:\/\//.test(path)) { return fetch(path, { headers: { 'content-type': 'application/json' } }).then((x) => x.text()); }