output proc names changed from alpha -> alphanumeric

This commit is contained in:
coffeepots 2018-05-17 15:23:49 +01:00
parent 2fef44ff88
commit 36cd28d077

View File

@ -133,10 +133,10 @@ proc setupParams(parameters, paramsIdent: NimNode): NimNode =
)
proc makeProcName(s: string): string =
# only alpha
# only alphanumeric
result = ""
for c in s:
if c.isAlphaAscii: result.add c
if c.isAlphaNumeric: result.add c
proc hasReturnType(params: NimNode): bool =
if params.len > 0 and params[0] != nil and params[0].kind != nnkEmpty: