Skip to content

Commit

Permalink
removed bus from name
Browse files Browse the repository at this point in the history
  • Loading branch information
fterrier committed Feb 26, 2015
1 parent 6c1c878 commit 2e69f3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clj/tramboard_clj/core/zvv.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
(str (f/parse zvv-date-formatter (str date " " time)))))

(defn- sanitize [text]
(str/replace (str/replace text " " " ") #"S( )+" "S"))
(reduce #(str/replace %1 (%2 0) (%2 1))
text
[[" " " "] [#"S( )+" "S"] ["Bus " ""]]))

(defn- map-category [text]
(case text
Expand Down

0 comments on commit 2e69f3c

Please sign in to comment.