fixes jstrutils.isInt
This commit is contained in:
parent
f17e37ac95
commit
e58cbb78d2
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ proc `&`*(s: cstring): cstring {.importcpp: "(#)", nodecl.}
|
||||||
|
|
||||||
proc isInt*(s: cstring): bool {.asmNoStackFrame.} =
|
proc isInt*(s: cstring): bool {.asmNoStackFrame.} =
|
||||||
asm """
|
asm """
|
||||||
return s.match(/^[0-9]+$/);
|
return `s`.match(/^[0-9]+$/);
|
||||||
"""
|
"""
|
||||||
|
|
||||||
proc parseInt*(s: cstring): int {.importcpp: "parseInt(#, 10)", nodecl.}
|
proc parseInt*(s: cstring): int {.importcpp: "parseInt(#, 10)", nodecl.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue