(csvPath: string)
| 230 | const DATABASE_TAB_PREFIX = 'zen://database/' |
| 231 | |
| 232 | export function databaseTabPath(csvPath: string): string { |
| 233 | return `${DATABASE_TAB_PREFIX}${encodeURIComponent(csvPath.replace(/^\/+/, ''))}` |
| 234 | } |
| 235 | |
| 236 | export function isDatabaseTabPath(path: string | null | undefined): boolean { |
| 237 | return typeof path === 'string' && path.startsWith(DATABASE_TAB_PREFIX) |
no outgoing calls
no test coverage detected