mirror of
https://gitea.com/docker/setup-buildx-action.git
synced 2024-11-22 09:29:34 +01:00
f40e8894f1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
8 lines
132 B
TypeScript
8 lines
132 B
TypeScript
export function isValidUrl(url: string): boolean {
|
|
try {
|
|
new URL(url);
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|