all repos — archive/microformats @ d7985eb9ef49be79296904e1ad292f9532a3310b

Incomplete Clojure microformats library

Give split-classes a clearer name

Alan Pearce
commit

d7985eb9ef49be79296904e1ad292f9532a3310b

parent

e023b6df338859d4f62f77e68f3456319304b1ff

1 file changed, 3 insertions(+), 3 deletions(-)

jump to
M src/microformats/parser.cljsrc/microformats/parser.clj
@@ -13,8 +13,8 @@ "Remove microformats prefixes from a class attribute"
[prefix] #(apply str (drop (count prefix) %))) -(defn- split-classes - "Split a whitespace-separated string." +(defn- split-ws-attribute + "Split a whitespace-separated attribute." [class] (str/split class #"\s+"))
@@ -30,7 +30,7 @@ "Get list of classes from an element"
[el] (some-> el :attrs :class - split-classes)) + split-ws-attribute)) (defn get-p-value "Get the p-x property value of an element"