diff options
Diffstat (limited to 'xmake/core/base/path.lua')
| -rw-r--r-- | xmake/core/base/path.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua index 9da3f57c4..18dbc6b01 100644 --- a/xmake/core/base/path.lua +++ b/xmake/core/base/path.lua @@ -191,7 +191,11 @@ function path.pattern(pattern) pattern = pattern:gsub("%*%*", "\001") pattern = pattern:gsub("%*", "\002") pattern = pattern:gsub("\001", ".*") - pattern = pattern:gsub("\002", "[^/]*") + if path.sep() == '\\' then + pattern = pattern:gsub("\002", "[^/\\]*") + else + pattern = pattern:gsub("\002", "[^/]*") + end -- case-insensitive filesystem? if not os.fscase() then |
