diff options
author | Alan Pearce | 2014-09-13 20:17:19 +0100 |
---|---|---|
committer | Alan Pearce | 2014-09-13 20:20:01 +0100 |
commit | 3af8fd8a02787bed26efad80a91b8541390b8e22 (patch) | |
tree | 808bdedb3f1e23704e12368c71bf0803bad28c99 /src | |
parent | 023b48cfad96c261f4abfa64c1092bdb39fba1c1 (diff) | |
download | microformats-3af8fd8a02787bed26efad80a91b8541390b8e22.tar.lz microformats-3af8fd8a02787bed26efad80a91b8541390b8e22.tar.zst microformats-3af8fd8a02787bed26efad80a91b8541390b8e22.zip |
Don't error when missing :attrs/:class
Diffstat (limited to 'src')
-rw-r--r-- | src/microformats/parser.clj | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microformats/parser.clj b/src/microformats/parser.clj index 558f784..882759a 100644 --- a/src/microformats/parser.clj +++ b/src/microformats/parser.clj @@ -27,10 +27,10 @@ (defn element-to-classes "Get list of classes from an element" - [el] (-> el - :attrs - :class - split-classes)) + [el] (some-> el + :attrs + :class + split-classes)) (defn get-p-value "Get the p-x property value of an element" |