Sanitizes a document title for use in S3 storage keys.
(title: string)
| 62 | |
| 63 | /** Sanitizes a document title for use in S3 storage keys. */ |
| 64 | function sanitizeStorageTitle(title: string): string { |
| 65 | return title.replace(/[^a-zA-Z0-9.-]/g, '_').slice(0, MAX_SAFE_TITLE_LENGTH) |
| 66 | } |
| 67 | type KnowledgeBaseLockingTx = Pick<typeof db, 'execute' | 'select'> |
| 68 | |
| 69 | type DocOp = |
no test coverage detected