picolisp

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/picolisp.git/
Log | Files | Refs | README | LICENSE

commit 3bdf72ed44f3028d5894b0daf130024f333c5c54
parent e8bd062f9536370d76181d2b5ba7468c86a1d355
Author: Alexander Burger <abu@software-lab.de>
Date:   Sat, 11 May 2013 06:34:13 +0200

No need to encodeURIComponent() numbers
Diffstat:
Mlib/form.js | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/form.js b/lib/form.js @@ -1,4 +1,4 @@ -/* 10may13abu +/* 11may13abu * (c) Software Lab. Alexander Burger */ @@ -489,7 +489,10 @@ function lisp(form, fun) { var exe = [fun]; for (var i = 2; i < arguments.length; ++i) - exe[i-1] = (typeof arguments[i] === "number"? "+" : ".") + encodeURIComponent(arguments[i]); + if (typeof arguments[i] === "number") + exe[i-1] = "+" + arguments[i]; + else + exe[i-1] = "." + encodeURIComponent(arguments[i]); return post(form, exe, null); } if (arguments.length > 2) {