(segment: string)
| 51 | const STORAGE_KEY_PREFIX_RE = /^\d{13}-[a-z0-9]{7}-/ |
| 52 | |
| 53 | function stripStorageKeyPrefix(segment: string): string { |
| 54 | return STORAGE_KEY_PREFIX_RE.test(segment) ? segment.replace(STORAGE_KEY_PREFIX_RE, '') : segment |
| 55 | } |
| 56 | |
| 57 | function getWorkspaceIdForCompile(key: string): string | undefined { |
| 58 | return parseWorkspaceFileKey(key) ?? undefined |
no test coverage detected