fix(core): remove trimLines to fix indentation lost

This commit is contained in:
Simon
2026-02-10 16:30:03 +08:00
parent 7d5449967b
commit 6f0655478a
2 changed files with 33 additions and 49 deletions

View File

@@ -39,15 +39,6 @@ export function truncate(text: string, maxLength: number): string {
//
export function trimLines(text: string): string {
return text
.split('\n')
.map((line) => line.trim())
.join('\n')
}
//
export function randomID(existingIDs?: string[]): string {
let id = Math.random().toString(36).substring(2, 11)