File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1924,7 +1924,7 @@ content) are considered part of the preceding sexp."
19241924(make-obsolete-variable 'clojure-namespace-name-regex 'clojure-namespace-regexp " 5.12.0" )
19251925
19261926(defconst clojure-namespace-regexp
1927- (rx line-start " (" (? " clojure.core/" ) (or " in-ns" " ns" " ns+" )))
1927+ (rx line-start " (" (? " clojure.core/" ) (or " in-ns" " ns" " ns+" ) symbol-end ))
19281928
19291929(defcustom clojure-cache-ns nil
19301930 " Whether to cache the results of `clojure-find-ns' .
Original file line number Diff line number Diff line change 109109|
110110(ns foo4)"
111111 (re-search-backward " |" )
112- (expect (clojure-find-ns) :to-equal " foo3" ))))
112+ (expect (clojure-find-ns) :to-equal " foo3" ))
113+ (with-clojure-buffer " (ns foo)
114+ (ns-unmap *ns* 'map)
115+ (ns.misleading 1 2 3)"
116+ (expect (clojure-find-ns) :to-equal " foo" ))))
113117
114118(describe " clojure-sort-ns"
115119 (it " should sort requires in a basic ns"
You can’t perform that action at this time.
0 commit comments