Skip to content

Commit

Permalink
Fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Seggan committed Jan 8, 2024
1 parent 145e9c6 commit 87d34ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject xclj "0.1.0-SNAPSHOT"
(defproject xclj "0.1.1-SNAPSHOT"
:description "Clojure, XML edition"
:url "https://github.com/Seggan/xclj"
:license {:name "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/xclj/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

(defn- convertToClojure [xml]
(if (string? xml)
(map read-string (clojure.string/split xml #"\s+"))
(read-string (str \[ xml \]))
(let [tag (:tag xml)
attrs (:attrs xml)
children (:content xml)]
Expand Down

0 comments on commit 87d34ad

Please sign in to comment.