summary refs log tree commit diff stats
path: root/src/common/url.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-01-31 23:58:18 -0500
committerTingPing <tngpng@gmail.com>2013-01-31 23:58:18 -0500
commitce31c6dce6484f9c9cb4764e37c55f72746cda27 (patch)
tree6b441f3169dc0f4b7ee8f84fef809e0e8c4cfdd8 /src/common/url.c
parentedc04743bfc9d8230a3fbdc4d3fa6c2b65f21bd0 (diff)
only detect full paths on windows.
closes #302
Diffstat (limited to 'src/common/url.c')
-rw-r--r--src/common/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/url.c b/src/common/url.c
index c183a5c8..dad23b67 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -512,8 +512,8 @@ re_channel (void)
 
 /*	PATH description --- */
 #ifdef WIN32
-/* Windows path can be \ or .\ or ..\ or e.g. C: etc */
-#define PATH "^(\\\\|\\.{1,2}\\\\|[a-z]:).*"
+/* Windows path can be C: D: etc */
+#define PATH "^([a-z]:).*"
 #else
 /* Linux path can be / or ./ or ../ etc */
 #define PATH "^(/|\\./|\\.\\./).*"