MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / parseQuickCaptureDeepLink

Function parseQuickCaptureDeepLink

apps/desktop/src/main/deep-links.ts:21–33  ·  view source on GitHub ↗
(rawUrl: string)

Source from the content-addressed store, hash-verified

19}
20
21export function parseQuickCaptureDeepLink(rawUrl: string): boolean {
22 const trimmed = rawUrl.trim()
23 if (!trimmed) return false
24
25 let parsed: URL
26 try {
27 parsed = new URL(trimmed)
28 } catch {
29 return false
30 }
31
32 return parsed.protocol === `${ZENNOTES_DEEP_LINK_SCHEME}:` && deepLinkAction(parsed) === 'quick-capture'
33}
34
35export function parseOpenNoteDeepLink(rawUrl: string): OpenNoteDeepLinkRequest | null {
36 const trimmed = rawUrl.trim()

Callers 2

handleExternalOpenUrlFunction · 0.90
deep-links.test.tsFile · 0.90

Calls 1

deepLinkActionFunction · 0.85

Tested by

no test coverage detected