mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
Fix relative paths on windows
This commit is contained in:
@@ -515,8 +515,8 @@ re_channel (void)
|
||||
|
||||
/* PATH description --- */
|
||||
#ifdef WIN32
|
||||
/* Windows path can be C: D: etc */
|
||||
#define PATH "^([a-z]:).*"
|
||||
/* Windows path can be .\ ..\ or C: D: etc */
|
||||
#define PATH "^(\\.{1,2}\\\\|[a-z]:).*"
|
||||
#else
|
||||
/* Linux path can be / or ./ or ../ etc */
|
||||
#define PATH "^(/|\\./|\\.\\./).*"
|
||||
|
||||
Reference in New Issue
Block a user