🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
14
node_modules/@astrojs/sitemap/dist/utils/is-valid-url.js
generated
vendored
Normal file
14
node_modules/@astrojs/sitemap/dist/utils/is-valid-url.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const isValidUrl = (s) => {
|
||||
if (typeof s !== "string" || !s) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
const dummy = new URL(s);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
export {
|
||||
isValidUrl
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue