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

Function isUrl

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

Source from the content-addressed store, hash-verified

100}
101
102export function isUrl(url: string): boolean {
103 return new RegExp(LINK_REG).test(url);
104}
105
106export function isEmailUrl(url: string): boolean {
107 return new RegExp(`^${LENGTH_LIMITED_EMAIL_REG.source}$`, 'i').test(url);

Callers 8

withVikaFunction · 0.90
onSaveFunction · 0.90
runAutomationUrlFunction · 0.90
recogClipboardURLDataFunction · 0.90
generateOpValueFunction · 0.90
parseAllUrlFunction · 0.85
isImageFunction · 0.85
getValidUrlFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected