Skip to content

Commit

Permalink
Oops ;import was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrand committed Aug 2, 2024
1 parent f466b92 commit 1a8c70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clj/src/cljd/compiler.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -3172,7 +3172,7 @@

(defn- import-to-require [spec]
(cond
(symbol? spec) (let [[_ ns id] (re-matches (name spec) #"(.+)\.(.+)")]
(symbol? spec) (let [[_ ns id] (re-matches #"(.+)\.(.+)" (name spec))]
[(symbol ns) :refer [(symbol id)]])
(sequential? spec) [(first spec) :refer (rest spec)]
:else (throw (ex-info (str "Unsupported import spec: "
Expand Down

0 comments on commit 1a8c70a

Please sign in to comment.