mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-10 17:43:07 +00:00
output proc names changed from alpha -> alphanumeric
This commit is contained in:
parent
b4c31d5ada
commit
e125d7883e
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user