mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-23 20:27:01 +08:00
Fix mark bug
This commit is contained in:
@@ -90,7 +90,7 @@ impl<'a> M3tParser<'a> {
|
|||||||
})
|
})
|
||||||
.replace("\\n", "\n")
|
.replace("\\n", "\n")
|
||||||
} else {
|
} else {
|
||||||
let mut tmp = message.replace("\\n", "\n");
|
let mut tmp = message.to_owned();
|
||||||
if let Some(llm) = llm.take() {
|
if let Some(llm) = llm.take() {
|
||||||
if tmp == llm {
|
if tmp == llm {
|
||||||
if let Some(mark) = self.llm_mark {
|
if let Some(mark) = self.llm_mark {
|
||||||
@@ -98,7 +98,7 @@ impl<'a> M3tParser<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tmp
|
tmp.replace("\\n", "\n")
|
||||||
};
|
};
|
||||||
if let Some(ori) = ori.take() {
|
if let Some(ori) = ori.take() {
|
||||||
map.insert(ori, message);
|
map.insert(ori, message);
|
||||||
@@ -160,7 +160,7 @@ impl<'a> M3tParser<'a> {
|
|||||||
})
|
})
|
||||||
.replace("\\n", "\n")
|
.replace("\\n", "\n")
|
||||||
} else {
|
} else {
|
||||||
let mut tmp = message.replace("\\n", "\n");
|
let mut tmp = message.to_owned();
|
||||||
if let Some(llm) = llm.take() {
|
if let Some(llm) = llm.take() {
|
||||||
if tmp == llm {
|
if tmp == llm {
|
||||||
if let Some(mark) = self.llm_mark {
|
if let Some(mark) = self.llm_mark {
|
||||||
@@ -168,7 +168,7 @@ impl<'a> M3tParser<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tmp
|
tmp.replace("\\n", "\n")
|
||||||
};
|
};
|
||||||
messages.push(Message::new(message, name.take()));
|
messages.push(Message::new(message, name.take()));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user