mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-22 22:42:42 +08:00
9 lines
132 B
TypeScript
9 lines
132 B
TypeScript
![]() |
export function isValidUrl(url: string): boolean {
|
||
|
try {
|
||
|
new URL(url);
|
||
|
} catch (e) {
|
||
|
return false;
|
||
|
}
|
||
|
return true;
|
||
|
}
|