1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2024-11-22 20:08:43 +00:00
setup-buildx-action/src/util.ts

9 lines
132 B
TypeScript
Raw Permalink Normal View History

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