about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2014-09-13 20:47:29 +0100
committerAlan Pearce2014-09-13 20:47:29 +0100
commite023b6df338859d4f62f77e68f3456319304b1ff (patch)
treeb18cc8533a7f83f6fbc0030d48eb7c403f1b35e7 /src
parentd311826df5bf8c232e511cf79d382000f36f4db1 (diff)
downloadmicroformats-e023b6df338859d4f62f77e68f3456319304b1ff.tar.lz
microformats-e023b6df338859d4f62f77e68f3456319304b1ff.tar.zst
microformats-e023b6df338859d4f62f77e68f3456319304b1ff.zip
Refactor selectors using set = union syntax
Diffstat (limited to 'src')
-rw-r--r--src/microformats/parser.clj8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microformats/parser.clj b/src/microformats/parser.clj
index 764594e..c721e5f 100644
--- a/src/microformats/parser.clj
+++ b/src/microformats/parser.clj
@@ -123,10 +123,10 @@
 (defn parse-children
   "Parse element children for microformats"
   [element]
-  (let [el (first (html/select element [(html/union [(html/attr-starts :class "p-")
-                                                     (html/attr-starts :class "u-")
-                                                     (html/attr-starts :class "dt-")
-                                                     (html/attr-starts :class "e-")])]))]
+  (let [el (first (html/select element {(html/attr-starts :class "p-")
+                                        (html/attr-starts :class "u-")
+                                        (html/attr-starts :class "dt-")
+                                        (html/attr-starts :class "e-")}))]
     (hash-map :properties (merge ((juxt parse-p parse-u parse-dt parse-e))))))
 
 (defn parse-h