From e58cbb78d20c94490a86337b5316a69ce0831884 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 21 Jun 2017 08:21:05 +0200 Subject: [PATCH] fixes jstrutils.isInt --- src/jstrutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jstrutils.nim b/src/jstrutils.nim index 0be4076..f0f22c0 100644 --- a/src/jstrutils.nim +++ b/src/jstrutils.nim @@ -19,7 +19,7 @@ proc `&`*(s: cstring): cstring {.importcpp: "(#)", nodecl.} proc isInt*(s: cstring): bool {.asmNoStackFrame.} = asm """ - return s.match(/^[0-9]+$/); + return `s`.match(/^[0-9]+$/); """ proc parseInt*(s: cstring): int {.importcpp: "parseInt(#, 10)", nodecl.}