Function
parseUtf8ValidationOption
(options?: { enableUtf8Validation?: boolean })
Source from the content-addressed store, hash-verified
| 168 | |
| 169 | /** @internal */ |
| 170 | export function parseUtf8ValidationOption(options?: { enableUtf8Validation?: boolean }): { |
| 171 | utf8: { writeErrors: false } | false; |
| 172 | } { |
| 173 | const enableUtf8Validation = options?.enableUtf8Validation; |
| 174 | if (enableUtf8Validation === false) { |
| 175 | return { utf8: false }; |
| 176 | } |
| 177 | return { utf8: { writeErrors: false } }; |
| 178 | } |
Tested by
no test coverage detected