Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/msgbyte/tailchat
/ isUrl
Function
isUrl
client/shared/utils/string-helper.ts:16–18 ·
view source on GitHub ↗
(str: string)
Source
from the content-addressed store, hash-verified
14
* @param str 要判断的字符串
15
*/
16
export
function
isUrl(str: string) {
17
return
urlRegex({ exact: true }).test(str);
18
}
19
20
/**
21
* 判断字符串是否是一个blobUrl
Callers
1
string-helper.spec.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected