diff --git a/src/book/book.rs b/src/book/book.rs index 369c6a07..09b51888 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -265,7 +265,7 @@ fn load_chapter>( })?; if content.as_bytes().starts_with(b"\xef\xbb\xbf") { - content = content[3..].to_string() + content.replace_range(..3, ""); } let stripped = location