{"action":"closed","issue":{"url":"https://api.github.com/repos/relevance/edn-ruby/issues/34","labels_url":"https://api.github.com/repos/relevance/edn-ruby/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/relevance/edn-ruby/issues/34/comments","events_url":"https://api.github.com/repos/relevance/edn-ruby/issues/34/events","html_url":"https://github.com/relevance/edn-ruby/issues/34","id":66657524,"number":34,"title":"String#to_edn can include Ruby escape chars not valid in EDN","user":{"login":"rcrogers","id":1903806,"avatar_url":"https://avatars.githubusercontent.com/u/1903806?v=3","gravatar_id":"","url":"https://api.github.com/users/rcrogers","html_url":"https://github.com/rcrogers","followers_url":"https://api.github.com/users/rcrogers/followers","following_url":"https://api.github.com/users/rcrogers/following{/other_user}","gists_url":"https://api.github.com/users/rcrogers/gists{/gist_id}","starred_url":"https://api.github.com/users/rcrogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcrogers/subscriptions","organizations_url":"https://api.github.com/users/rcrogers/orgs","repos_url":"https://api.github.com/users/rcrogers/repos","events_url":"https://api.github.com/users/rcrogers/events{/privacy}","received_events_url":"https://api.github.com/users/rcrogers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T17:19:26Z","updated_at":"2015-05-14T18:08:03Z","closed_at":"2015-05-14T18:08:03Z","body":"```\r\n2.2.0 :022 > puts 'foo #{ bar'.to_edn\r\n\"foo \\#{ bar\"\r\n```\r\n\r\nIf such a string is used in a Datomic query, it causes an error:\r\n```\r\nCaused by: java.lang.RuntimeException: Unsupported escape character: \\#\r\n\tat clojure.lang.Util.runtimeException(Util.java:221) ~[clojure-1.6.0.jar:na]\r\n\tat clojure.lang.EdnReader$StringReader.invoke(EdnReader.java:454) ~[clojure-1.6.0.jar:na]\r\n```\r\n\r\nThis seems to result from the use of String#inspect to implement String#to_edn."}}