We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261969a commit 075ed31Copy full SHA for 075ed31
base/path.jl
@@ -37,10 +37,12 @@ elseif Sys.iswindows()
37
const splitdrive_re = let
38
# Slash in either direction.
39
S = raw"[\\/]"
40
- # Not a slash in either direction.
41
- N = raw"[^\\/]"
+ # Not a slash in either direction, or any of the other
+ # reserved characters from
42
+ # https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions.
43
+ N = raw"[^\\/<>:\"|?*]"
44
# Drive letter, e.g. `C:`
- drive = "$(N)+:"
45
+ drive = "[a-zA-Z]:"
46
# UNC path, e.g. `\\server\share`
47
unc = "$(S)$(S)$(N)+$(S)$(N)+"
48
# Long drive letter, e.g. `\\?\C:`
0 commit comments