Skip to content

Commit 3edc678

Browse files
committed
Avoid confusing ns with the word "latest" with a "test"
1 parent ece7889 commit 3edc678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clj-refactor.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ If CLJS? is T we insert in the cljs part of the ns declaration."
10791079
10801080
Two checks are made - whether the namespace of the file has the
10811081
word test in it and whether the file lives under the test/ directory."
1082-
(or (string-match-p "test\." (clojure-find-ns))
1082+
(or (string-match-p "\\btest\\b" (clojure-find-ns))
10831083
(string-match-p "/test" (buffer-file-name))))
10841084

10851085
(defun cljr--clojure-ish-filename-p (file-name)

0 commit comments

Comments
 (0)