mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 10:14:10 +02:00
handle BOM
This commit is contained in:
parent
de2e940974
commit
b06f419a9a
1 changed files with 2 additions and 1 deletions
|
|
@ -120,7 +120,8 @@ pub struct LineSplit<'a> {
|
|||
|
||||
impl<'a> LineSplit<'a> {
|
||||
pub fn new(input: &'a str) -> Self {
|
||||
let input = &input[2..]; //skip first
|
||||
// skip first delimiter, and any byte order mark
|
||||
let (_, input) = input.split_once("L ").unwrap_or_default();
|
||||
LineSplit {
|
||||
input,
|
||||
start: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue