Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 01:51:36 +00:00
parent a4605e311a
commit 58905d02c2
28599 changed files with 2179074 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
/**
* 判断是不是一个 url
* @param {string|undefined} path
* @returns boolean
*/
export declare const isUrl: (path: string | undefined) => boolean;

17
node_modules/@ant-design/pro-utils/es/isUrl/index.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/**
* 判断是不是一个 url
* @param {string|undefined} path
* @returns boolean
*/
export var isUrl = function isUrl(path) {
if (!path) return false;
if (!path.startsWith('http')) {
return false;
}
try {
var url = new URL(path);
return !!url;
} catch (error) {
return false;
}
};