Skip to content

Commit 9e1952c

Browse files
committed
Fix regex coercion in client config
1 parent 3dd98c9 commit 9e1952c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/refactor_nrepl/config.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030
(into {}
3131
(map (fn [[k v]] (cond
3232
(and (string? v) (= v "true")) [k true]
33-
(string? v) [k false]
33+
(and (string? v) (= v "false")) [k false]
3434
:else [k v]))
35-
(select-keys msg (keys *config*)))))
35+
(update (select-keys msg (keys *config*))
36+
:ignore-paths
37+
(partial map re-pattern)))))
3638

3739
(defmacro with-config
3840
"Merge the override map with the default config and execute body."

0 commit comments

Comments
 (0)