Skip to content

Commit

Permalink
read the Java docs, fixed this invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDanger committed Sep 3, 2012
1 parent e70d465 commit c6f4b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clojure/src/feminizer/core.clj
Expand Up @@ -53,8 +53,8 @@
#" (.*) "
(fn [[_ s]] s)))) ; strip normalized whitespace

(defn feminize [text] ; split-lines loses trailing blank lines :(
(join "\n" (map feminize-line (butlast (split-lines (str text "\n."))))))
(defn feminize [text]
(join "\n" (map feminize-line (split text #"\n" -1))))


(deftest test-feminizer.core
Expand Down

0 comments on commit c6f4b54

Please sign in to comment.