setup-buildx-action/src/util.ts
CrazyMax f40e8894f1
Allow building buildx from source
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-02 07:02:33 +02:00

9 lines
132 B
TypeScript

export function isValidUrl(url: string): boolean {
try {
new URL(url);
} catch (e) {
return false;
}
return true;
}