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

Function cleanDeletedAssetToken

apps/desktop/src/main/vault.ts:2913–2918  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

2911}
2912
2913function cleanDeletedAssetToken(token: string): string {
2914 if (!/^[0-9a-f-]{36}$/i.test(token)) {
2915 throw new Error('Deleted asset restore token is invalid.')
2916 }
2917 return token
2918}
2919
2920function markdownForImportedAsset(
2921 relativeFromNote: string,

Callers 1

restoreDeletedAssetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected