bugfix: package names should not contain '.'
This commit is contained in:
parent
90d25919f3
commit
9bf32ff72d
2 changed files with 17 additions and 5 deletions
|
|
@ -219,8 +219,10 @@ proc getPackageName*(path: string): string =
|
|||
else:
|
||||
let x = path.substr(i+1, b-1)
|
||||
case x.normalize
|
||||
of "lib", "src", "source", "package", "pckg", "library": b = i
|
||||
else: return x
|
||||
of "lib", "src", "source", "package", "pckg", "library", "private":
|
||||
b = i
|
||||
else:
|
||||
return x.replace('.', '_')
|
||||
result = ""
|
||||
|
||||
proc withPackageName*(path: string): string =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue