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 --- */
#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 "^(/|\\./|\\.\\./).*"