mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🐛 修复\r导致的分割异常
This commit is contained in:
@@ -42,6 +42,7 @@ function getParsedData(data: TGApp.Plugins.Mys.SctPost.Base[]): TGApp.Plugins.My
|
|||||||
res.push(cur);
|
res.push(cur);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
tp.insert = tp.insert.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
||||||
if (tp.insert === "\n") {
|
if (tp.insert === "\n") {
|
||||||
child.push(tp);
|
child.push(tp);
|
||||||
cur = {
|
cur = {
|
||||||
|
|||||||
Reference in New Issue
Block a user