MCPcopy Create free account
hub / github.com/apitable/apitable / hasUrlProtocol

Function hasUrlProtocol

packages/core/src/utils/string.ts:98–100  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

96 return new RegExp(VCODE_REG).test(code);
97}
98export function hasUrlProtocol(url: string): boolean {
99 return new RegExp(URL_PROTOCOL_REG).test(url);
100}
101
102export function isUrl(url: string): boolean {
103 return new RegExp(LINK_REG).test(url);

Callers 1

parseAllUrlFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected