(contentKey: string)
| 25 | } |
| 26 | |
| 27 | export function parseContentKey(contentKey: string) { |
| 28 | const index = contentKey.indexOf('/'); |
| 29 | return { collection: contentKey.slice(0, index), slug: contentKey.slice(index + 1) }; |
| 30 | } |
| 31 | |
| 32 | export function contentKeyFromBranch(branch: string) { |
| 33 | return branch.slice(`${CMS_BRANCH_PREFIX}/`.length); |
no outgoing calls
no test coverage detected