js-on-sx: js-is-space? covers full ES WhiteSpace + LineTerminator set
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s
This commit is contained in:
@@ -1553,7 +1553,26 @@
|
||||
|
||||
(define
|
||||
js-is-space?
|
||||
(fn (c) (or (= c " ") (= c "\t") (= c "\n") (= c "\r"))))
|
||||
(fn
|
||||
(c)
|
||||
(let
|
||||
((cc (char-code c)))
|
||||
(or
|
||||
(= cc 9)
|
||||
(= cc 10)
|
||||
(= cc 11)
|
||||
(= cc 12)
|
||||
(= cc 13)
|
||||
(= cc 32)
|
||||
(= cc 160)
|
||||
(= cc 5760)
|
||||
(and (>= cc 8192) (<= cc 8202))
|
||||
(= cc 8232)
|
||||
(= cc 8233)
|
||||
(= cc 8239)
|
||||
(= cc 8287)
|
||||
(= cc 12288)
|
||||
(= cc 65279)))))
|
||||
|
||||
(define
|
||||
js-parse-decimal
|
||||
|
||||
Reference in New Issue
Block a user