Skip to content

Commit 5a84693

Browse files
authored
Add files via upload
1 parent 5a1f0bd commit 5a84693

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyfoxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def RemoveWindowsPath(dpath):
868868
"""
869869
if not dpath:
870870
return ""
871-
if(re.findall("^(file):///", dpath)):
871+
if(re.findall("^file:/{2,3}", dpath)):
872872
dparsed = urlparse(dpath)
873873
dpath = url2pathname(dparsed.path)
874874
# Accept bytes and decode safely
@@ -886,7 +886,7 @@ def NormalizeRelativePath(inpath):
886886
"""
887887
Ensures the path is relative unless it is absolute. Prepares consistent relative paths.
888888
"""
889-
if(re.findall("^(file):///", inpath)):
889+
if(re.findall("^file:/{2,3}", inpath)):
890890
dparsed = urlparse(inpath)
891891
inpath = url2pathname(dparsed.path)
892892
inpath = RemoveWindowsPath(inpath)

0 commit comments

Comments
 (0)