(token: string)
| 2911 | } |
| 2912 | |
| 2913 | function 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 | |
| 2920 | function markdownForImportedAsset( |
| 2921 | relativeFromNote: string, |
no outgoing calls
no test coverage detected