Skip to content

Commit

Permalink
CORE-4926: remove a trailing period, if present, from the template na…
Browse files Browse the repository at this point in the history
…me when determining the output file name
  • Loading branch information
slr71 committed Jan 3, 2014
1 parent ccb9433 commit 9d32a1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject clavin "1.3.1-SNAPSHOT"
(defproject clavin "1.3.2-SNAPSHOT"
:description "A command-line tool for loading service configurations into Zookeeper."
:dependencies [[org.antlr/stringtemplate "4.0.2"]
[org.clojure/clojure "1.5.1"]
Expand Down
4 changes: 2 additions & 2 deletions src/clavin/generator.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
template name will be used as the file name. Otherwise, the file name will be the template name
extended with '.properties'."
[template-name]
(if (.contains template-name ".")
template-name
(if (.contains template-name ".")
(string/replace template-name #"[.]\z" "")
(str template-name ".properties")))

(defn- write-file
Expand Down

0 comments on commit 9d32a1b

Please sign in to comment.