fix #7
This commit is contained in:
parent
d882c886fb
commit
a5550e5752
|
@ -25,11 +25,12 @@ export function dmSlice(raw: string): string[] {
|
||||||
let front = txt.slice(0, 2000);
|
let front = txt.slice(0, 2000);
|
||||||
let end = txt.slice(2000, txt.length);
|
let end = txt.slice(2000, txt.length);
|
||||||
if (end) {
|
if (end) {
|
||||||
let toLastNextLine =
|
let toLastNextLine = front.slice(front.lastIndexOf("\n"), front.length);
|
||||||
"ㅤ" /* 공백문자 */ +
|
|
||||||
front.slice(front.lastIndexOf("\n"), front.length);
|
|
||||||
front = front.slice(0, front.lastIndexOf("\n"));
|
front = front.slice(0, front.lastIndexOf("\n"));
|
||||||
end = toLastNextLine + end;
|
end = toLastNextLine + end;
|
||||||
|
if (end.slice(0, 1) == "\n") {
|
||||||
|
end = "ㅤ" /* 공백문자 */ + end;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return { front, end };
|
return { front, end };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue