Fix for boundary case (Jack)
This commit is contained in:
parent
7806c16650
commit
d6a111e2dd
@ -45,7 +45,10 @@ def split(s):
|
|||||||
colon = 0
|
colon = 0
|
||||||
for i in range(len(s)):
|
for i in range(len(s)):
|
||||||
if s[i] == ':': colon = i+1
|
if s[i] == ':': colon = i+1
|
||||||
return s[:colon-1], s[colon:]
|
path, file = s[:colon-1], s[colon:]
|
||||||
|
if path and not ':' in path:
|
||||||
|
path = path + ':'
|
||||||
|
return path, file
|
||||||
|
|
||||||
|
|
||||||
# Split a path in root and extension.
|
# Split a path in root and extension.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user