From 9f3a51527eddbd18a800f9a4dd183ea03b78150c Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 9 Mar 2015 11:43:36 -0400 Subject: [PATCH] Handle windows case better --- openbr/plugins/io/download.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/io/download.cpp b/openbr/plugins/io/download.cpp index eb6f476..a090acb 100644 --- a/openbr/plugins/io/download.cpp +++ b/openbr/plugins/io/download.cpp @@ -57,7 +57,9 @@ private: if (!url.contains("://")) url = "file://" + url; dst.file.set("URL", url); - if (url.startsWith("file:///")) + + QRegularExpression regExp("file:///[A-Z]:/"); + if (url.contains(regExp)) url = url.mid(8); else if (url.startsWith("file://")) url = url.mid(7); -- libgit2 0.21.4