Fix #640 - strip out blank spaces
This commit is contained in:
parent
e39c57482a
commit
fb57d47421
1 changed files with 4 additions and 1 deletions
|
|
@ -212,7 +212,10 @@ proc multiSplit(s: string): seq[string] =
|
|||
result.del(i)
|
||||
# Huh, nothing to return? Return given input.
|
||||
if len(result) < 1:
|
||||
return @[s]
|
||||
if s.strip().len != 0:
|
||||
return @[s]
|
||||
else:
|
||||
return @[]
|
||||
|
||||
proc readPackageInfoFromNimble(path: string; result: var PackageInfo) =
|
||||
var fs = newFileStream(path, fmRead)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue