mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 13:09:07 +08:00
commit
2cf37d6f48
@ -253,7 +253,10 @@ export function isApiOutdated(
|
||||
}
|
||||
|
||||
export function isValidApi(api: string) {
|
||||
return api && /^(?:https?:\/\/[^\/]+)?(\/[^\s\/\?]*){1,}(\?.*)?$/.test(api);
|
||||
return (
|
||||
api &&
|
||||
/^(?:(https?|wss?|taf):\/\/[^\/]+)?(\/[^\s\/\?]*){1,}(\?.*)?$/.test(api)
|
||||
);
|
||||
}
|
||||
|
||||
export function isEffectiveApi(
|
||||
|
Loading…
Reference in New Issue
Block a user