chore: Change dev and social sites config and option from string to list of strings

This commit is contained in:
Sebastian Velez
2023-04-28 13:18:06 -05:00
parent 6b9dd5c26e
commit 9898339a33
5 changed files with 69 additions and 34 deletions

View File

@@ -6,3 +6,12 @@ export default function getDomainFromUrl(url: string): string {
return parts[0] + '//' + parts[2];
}
/**
* Returns domain from given URL.
*/
export function getDomainFromUrlWithoutProtocol(url: string): string {
const parts = url.split('/');
return parts[2];
}