(input: string, range: LocalMemoryEntryDraftRange)
| 851 | } |
| 852 | |
| 853 | function removeLocalMemoryEntrySection(input: string, range: LocalMemoryEntryDraftRange): string { |
| 854 | const before = input.slice(0, range.start).replace(/\n{3,}$/g, '\n\n'); |
| 855 | const after = input.slice(range.end).replace(/^\n{2,}/g, '\n'); |
| 856 | return `${before}${after}`.trimEnd() + '\n'; |
| 857 | } |
| 858 | |
| 859 | function serializeMetaComment(meta: Record<string, string>): string { |
| 860 | const orderedKeys = [ |
no test coverage detected