mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:19:01 +08:00
fix 726 添加 wss? 和 taf 自定义协议的支持
This commit is contained in:
parent
f317a1abf8
commit
5ca063bc6f
@ -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