mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 13:09:07 +08:00
Merge remote-tracking branch 'amis/master'
This commit is contained in:
commit
86d8a1c4e0
@ -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