building a lot of the modal for the creating room and close to being done
This commit is contained in:
@@ -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:";
|
||||
}
|
||||
Reference in New Issue
Block a user