(chunks: string[])
| 126 | } |
| 127 | |
| 128 | function parseKeyword(chunks: string[]): KV | undefined { |
| 129 | let key |
| 130 | if (!KEY_REGEX.test(chunks[0])) { |
| 131 | return |
| 132 | } |
| 133 | key = chunks.shift()! |
| 134 | |
| 135 | const type = [] |
| 136 | while (chunks.length && TYPE_REGEX.test(chunks[0])) { |
| 137 | type.push(chunks.shift()) |
| 138 | } |
| 139 | let value: string = '' |
| 140 | if (type.length) { |
| 141 | value = type.join(SEPARATOR) |
| 142 | } |
| 143 | return [key, value] |
| 144 | } |
| 145 | |
| 146 | function parseTransformedExtension(chunks: string[]): TransformedExtension { |
| 147 | let lang: UnicodeLanguageId | undefined |
no outgoing calls
no test coverage detected