MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / isMail

Function isMail

apps/web/ui/Message/Link/utilities.ts:31–33  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

29}
30
31export function isMail(href: string): boolean {
32 return href.startsWith('mailto:');
33}
34
35export function isUrlValid(url: string): boolean {
36 return !url.startsWith('http://-') && !url.startsWith('https://-');

Callers 1

LinkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected