Function
getRecordString
(
record: Record<string, unknown>,
keys: string[],
)
Source from the content-addressed store, hash-verified
| 129 | } |
| 130 | |
| 131 | function getRecordString( |
| 132 | record: Record<string, unknown>, |
| 133 | keys: string[], |
| 134 | ): string | null { |
| 135 | for (const key of keys) { |
| 136 | const value = record[key]; |
| 137 | if (typeof value === "string") { |
| 138 | return value; |
| 139 | } |
| 140 | } |
| 141 | return null; |
| 142 | } |
| 143 | |
| 144 | function isReadFileMetaLine(line: string) { |
| 145 | return /^\[showing lines \d+-\d+ of \d+; use offset=\d+ to continue\]$/.test( |
Tested by
no test coverage detected