Tighten the regex for bare drives.
This commit is contained in:
parent
8ce9600ffa
commit
af1538a139
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Path:
|
|||
self.absolute_path = path.absolute_path
|
||||
else:
|
||||
path = path.strip()
|
||||
if re.search('[A-Za-z]:$', path):
|
||||
if re.search('^[A-Za-z]:$', path):
|
||||
# Bare Windows drive letter.
|
||||
path += self.sep
|
||||
path = normalize_sep(path)
|
||||
|
|
Loading…
Reference in a new issue