only detect full paths on windows.

closes #302
This commit is contained in:
TingPing 2013-01-31 23:58:18 -05:00
parent edc04743bf
commit ce31c6dce6
1 changed files with 2 additions and 2 deletions

View File

@ -512,8 +512,8 @@ re_channel (void)
/* PATH description --- */ /* PATH description --- */
#ifdef WIN32 #ifdef WIN32
/* Windows path can be \ or .\ or ..\ or e.g. C: etc */ /* Windows path can be C: D: etc */
#define PATH "^(\\\\|\\.{1,2}\\\\|[a-z]:).*" #define PATH "^([a-z]:).*"
#else #else
/* Linux path can be / or ./ or ../ etc */ /* Linux path can be / or ./ or ../ etc */
#define PATH "^(/|\\./|\\.\\./).*" #define PATH "^(/|\\./|\\.\\./).*"