jsedn icon indicating copy to clipboard operation
jsedn copied to clipboard

Valid keyword fails to parse

Open kennyjwilli opened this issue 4 years ago • 0 comments

Using jsedn 0.4.1, I get an error thrown when a keyword contains the ">" character. This is a valid EDN keyword as per the EDN spec.

Symbols begin with a non-numeric character and can contain alphanumeric characters and . * + ! - _ ? $ % & = < >.

Example failing case.

const edn = require("jsedn");
edn.parse("{:a->b 1}")
Uncaught 'provided an invalid symbol :a->b'

kennyjwilli avatar Jul 09 '20 01:07 kennyjwilli