fix: lint
parent
adecddae67
commit
b2cf1646a4
|
|
@ -4,8 +4,7 @@
|
||||||
*/
|
*/
|
||||||
export function isUrl(path: string): boolean {
|
export function isUrl(path: string): boolean {
|
||||||
try {
|
try {
|
||||||
new URL(path);
|
return Boolean(new URL(path));
|
||||||
return true;
|
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue