lua: scoreboard iter — trim whitespace in lua-to-number (math.lua past arith-type)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
(cond
|
||||
((= (type-of v) "number") v)
|
||||
((= (type-of v) "string")
|
||||
(let ((n (parse-number v))) (if (= n nil) nil n)))
|
||||
(let ((n (parse-number (trim v)))) (if (= n nil) nil n)))
|
||||
(else nil))))
|
||||
|
||||
(define
|
||||
|
||||
Reference in New Issue
Block a user