docker-buildx-setup/src/util.ts

9 lines
132 B
TypeScript
Raw Normal View History

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