Fix relative paths on windows

This commit is contained in:
TingPing 2013-03-11 13:55:29 -03:00
parent 1ddb76465a
commit b5f78f484d
1 changed files with 2 additions and 2 deletions

View File

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