From d96844307462718acfc4cf19208aae2c3e0eb691 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Mon, 5 Aug 2019 20:03:51 -0400 Subject: [PATCH] Don't bother splitting the path after the 3rd colon --- src/preprocess/links.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess/links.rs b/src/preprocess/links.rs index d7a36a19..2b435a3f 100644 --- a/src/preprocess/links.rs +++ b/src/preprocess/links.rs @@ -180,7 +180,7 @@ fn return_relative_path>(base: P, relative: P) -> PathBuf { } fn parse_include_path(path: &str) -> LinkType<'static> { - let mut parts = path.split(':').fuse(); + let mut parts = path.splitn(4, ':').fuse(); let path = parts.next().unwrap().into(); let next_element = parts.next();