Skip to content

Commit

Permalink
Handle symbol and string syntaxes
Browse files Browse the repository at this point in the history
  • Loading branch information
vemv committed Jan 29, 2022
1 parent 532a34d commit 11de5d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/refactor_nrepl/ns/libspec_whitelist.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
(throw e)))))]
(->> exclude
(mapv (fn [entry]
(re-pattern (str "^" (Pattern/quote (str entry)) "$"))))
(re-pattern (if (symbol? entry)
(str "^" (Pattern/quote (str entry)) "$")
entry))))
(into (:libspec-whitelist config/*config*)))))

(def ^:private ^:dynamic *libspec-whitelist* nil)
Expand Down

0 comments on commit 11de5d6

Please sign in to comment.