mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-05 18:30:09 +02:00
12 lines
134 B
JavaScript
12 lines
134 B
JavaScript
|
function validURL(url) {
|
||
|
try {
|
||
|
new URL(url);
|
||
|
return true;
|
||
|
} catch {}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
validURL,
|
||
|
};
|