mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 18:24:09 +02:00
handle some more mallformed utf8 cases
This commit is contained in:
parent
dc98cb9816
commit
c73828a2db
1 changed files with 1 additions and 7 deletions
|
|
@ -103,13 +103,7 @@ pub fn split_player_subject(input: &str) -> Result<(&str, &str, &str, &str)> {
|
|||
} else {
|
||||
(
|
||||
name,
|
||||
user_id
|
||||
.get(0..user_id.len() - 1)
|
||||
.or_else(|| {
|
||||
println!("{}", input);
|
||||
None
|
||||
})
|
||||
.expect("asd"),
|
||||
user_id.get(0..user_id.len() - 1).ok_or(Error::Malformed)?,
|
||||
&steam_id[0..steam_id.len() - 1],
|
||||
&team[0..team.len() - 1],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue