mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 18:24:09 +02:00
fmt
This commit is contained in:
parent
7bdc2887c4
commit
9d6f946c11
2 changed files with 4 additions and 3 deletions
|
|
@ -10,4 +10,5 @@ tf-log-parser path/to/log.log
|
||||||
|
|
||||||
## Custom statistics
|
## Custom statistics
|
||||||
|
|
||||||
By implementing the `EventHandler` trait you can run custom analysis, see the [examples](./examples) for details.
|
By implementing the `EventHandler` trait you can run custom analysis, see the
|
||||||
|
[examples](./examples) for details.
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ pub fn subject_parser(input: &str) -> Result<(&str, RawSubject)> {
|
||||||
let full = input;
|
let full = input;
|
||||||
if let Some(input) = input.strip_prefix('"') {
|
if let Some(input) = input.strip_prefix('"') {
|
||||||
let Ok((player, input)) = split_subject_end(input, 1) else {
|
let Ok((player, input)) = split_subject_end(input, 1) else {
|
||||||
return Ok((full, RawSubject::Console))
|
return Ok((full, RawSubject::Console));
|
||||||
};
|
};
|
||||||
let input = skip(input, 1)?;
|
let input = skip(input, 1)?;
|
||||||
if player.ends_with("le>") {
|
if player.ends_with("le>") {
|
||||||
|
|
@ -169,7 +169,7 @@ pub fn subject_parser(input: &str) -> Result<(&str, RawSubject)> {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let Ok((system, input)) = split_once(input, b' ', 1) else {
|
let Ok((system, input)) = split_once(input, b' ', 1) else {
|
||||||
return Ok(("", RawSubject::System(input)))
|
return Ok(("", RawSubject::System(input)));
|
||||||
};
|
};
|
||||||
Ok((input, RawSubject::System(system)))
|
Ok((input, RawSubject::System(system)))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue