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