change \r\n
to \n
in the entire log instead
This commit is contained in:
parent
053a55c704
commit
b8bb5b2d75
2 changed files with 3 additions and 1 deletions
|
@ -334,7 +334,7 @@ fn offline_launch(log: &str) -> Issue {
|
||||||
.to_string(),
|
.to_string(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let found = log.contains("(missing)\n") || log.contains("(missing)\r\n");
|
let found = log.contains("(missing)\n");
|
||||||
found.then_some(issue)
|
found.then_some(issue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,8 @@ pub async fn handle(ctx: &Context, message: &Message, data: &Data) -> Result<()>
|
||||||
return Ok(());
|
return Ok(());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let log = log.replace("\r\n", "\n");
|
||||||
|
|
||||||
let issues = issues::find(&log, data).await?;
|
let issues = issues::find(&log, data).await?;
|
||||||
|
|
||||||
let embed = {
|
let embed = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue