Method
appendDetails
(state: ParsingState, value: string)
Source from the content-addressed store, hash-verified
| 457 | } |
| 458 | |
| 459 | private static appendDetails(state: ParsingState, value: string): void { |
| 460 | if (!value.trim()) { |
| 461 | return; |
| 462 | } |
| 463 | |
| 464 | state.parsed.details = state.parsed.details |
| 465 | ? `${state.parsed.details}\n\n${value.trim()}` |
| 466 | : value.trim(); |
| 467 | } |
| 468 | |
| 469 | private static normalizeDate(dateString: string | undefined): string | undefined { |
| 470 | if (!dateString) { |
Tested by
no test coverage detected