From dec535da812928d6dc0036e7f4760af17774dcbf Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 20 Jun 2020 23:44:32 -0700 Subject: misc --- src/epub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/epub.rs') diff --git a/src/epub.rs b/src/epub.rs index d74bd2a..491398b 100644 --- a/src/epub.rs +++ b/src/epub.rs @@ -98,7 +98,7 @@ impl Epub { let doc = Document::parse(&xml).unwrap(); // zip expects unix path even on windows let rootdir = match path.rfind('/') { - Some(n) => &path[..n + 1], + Some(n) => &path[..=n], None => "", }; -- cgit v1.2.3