Skip to content

Commit 8aad439

Browse files
authored
fix(path): add a windows style path pattern to is_absolute() (#551)
1 parent f7adfc4 commit 8aad439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/plenary/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ end
7878

7979
local is_absolute = function(filename, sep)
8080
if sep == "\\" then
81-
return string.match(filename, "^[%a]:\\.*$") ~= nil
81+
return string.match(filename, "^[%a]:[\\/].*$") ~= nil
8282
end
8383
return string.sub(filename, 1, 1) == sep
8484
end

0 commit comments

Comments
 (0)