adding workspaces install

This commit is contained in:
Arjun Patel
2022-01-28 14:16:29 -08:00
parent a3e6f7cf5e
commit fdb3b78817
33 changed files with 6642 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
export default function isValidHttpUrl(potentialUrl: string) {
let url;
try {
url = new URL(potentialUrl);
} catch (_) {
return false;
}
return url.protocol === "http:" || url.protocol === "https:";
}