Skip to content

Commit 5929ddb

Browse files
committed
Optimize a filtering regexp
1 parent a14a653 commit 5929ddb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cider/nrepl/middleware/stacktrace.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108

109109
(defn flag-tooling
110110
"Walk the call stack from top to bottom, flagging frames below the first call
111-
to `clojure.lang.Compiler` or `(clojure.tools.)nrepl.*` as `:tooling` to
111+
to `clojure.lang.Compiler` or `nrepl.*` as `:tooling` to
112112
distinguish compilation and nREPL middleware frames from user code."
113113
[frames]
114-
(let [tool-regex #"^clojure\.lang\.Compiler|^clojure\.tools\.nrepl\.|^nrepl\.|^cider\."
114+
(let [tool-regex #"^clojure\.lang\.Compiler|^nrepl\.|^cider\."
115115
tool? #(re-find tool-regex (or (:name %) ""))
116116
flag #(if (tool? %)
117117
(flag-frame % :tooling)

0 commit comments

Comments
 (0)