Skip to content

Commit

Permalink
Unngå tomme strings "" som ord
Browse files Browse the repository at this point in the history
  • Loading branch information
magnars committed Oct 10, 2023
1 parent 6bd10fc commit 4ed3a30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/matvaretabellen/ingest.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
json/read-str))

(defn get-words [s & [re]]
(str/split (str/trim s) (or re #" +")))
(->> (str/split (str/trim s) (or re #" +"))
(remove empty?)))

(def known-non-constituents
["Netto"
Expand Down

0 comments on commit 4ed3a30

Please sign in to comment.