We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5491530 commit 3eea708Copy full SHA for 3eea708
1 file changed
pycatfile.py
@@ -869,7 +869,7 @@ def RemoveWindowsPath(dpath):
869
"""
870
if not dpath:
871
return ""
872
- if(re.findall("^(file):///", dpath)):
+ if(re.findall("^file:/{2,3}", dpath)):
873
dparsed = urlparse(dpath)
874
dpath = url2pathname(dparsed.path)
875
# Accept bytes and decode safely
@@ -887,7 +887,7 @@ def NormalizeRelativePath(inpath):
887
888
Ensures the path is relative unless it is absolute. Prepares consistent relative paths.
889
890
- if(re.findall("^(file):///", inpath)):
+ if(re.findall("^file:/{2,3}", inpath)):
891
dparsed = urlparse(inpath)
892
inpath = url2pathname(dparsed.path)
893
inpath = RemoveWindowsPath(inpath)
0 commit comments