change \r\n to \n in the entire log instead

This commit is contained in:
maskers 2024-09-08 23:23:59 +03:00
parent 053a55c704
commit b8bb5b2d75
2 changed files with 3 additions and 1 deletions

View file

@ -334,7 +334,7 @@ fn offline_launch(log: &str) -> Issue {
.to_string(),
);
let found = log.contains("(missing)\n") || log.contains("(missing)\r\n");
let found = log.contains("(missing)\n");
found.then_some(issue)
}

View file

@ -41,6 +41,8 @@ pub async fn handle(ctx: &Context, message: &Message, data: &Data) -> Result<()>
return Ok(());
};
let log = log.replace("\r\n", "\n");
let issues = issues::find(&log, data).await?;
let embed = {