Skip to content

Commit

Permalink
Handle bare dot
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbloom committed May 31, 2015
1 parent 09574bd commit fb1452a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backtick.clj
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
(let [ns (namespace sym)
nm (name sym)]
(if (nil? ns)
(if-let [[_ ctor-name] (re-find #"(.*)\.$" nm)]
(if-let [[_ ctor-name] (re-find #"(.+)\.$" nm)]
(symbol nil (-> (symbol nil ctor-name)
resolve-symbol
name
Expand Down
3 changes: 2 additions & 1 deletion test/backtick_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
unqualified
fully/qualified
.method
.
inc
backtick.test/inc
quote])
Expand All @@ -60,7 +61,7 @@
unqualified
fully/qualified
.method
.
inc
backtick.test/inc
quote]))))

0 comments on commit fb1452a

Please sign in to comment.