We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ba5a6 commit e962ec0Copy full SHA for e962ec0
src/main/clojure/cljs/repl/browser.clj
@@ -227,8 +227,8 @@
227
(cond-> column
228
(.endsWith column ")") (string/replace ")" "")))]))
229
230
-(defn parse-file [{:keys [host port] :as repl-env} file {:keys [asset-path] :as opts}]
231
- (let [base-url-pattern (Pattern/compile (str "http://" host ":" port "/"))]
+(defn parse-file [{:keys [host host-port port] :as repl-env} file {:keys [asset-path] :as opts}]
+ (let [base-url-pattern (Pattern/compile (str "http://" host ":" (or host-port port) "/"))]
232
(if (re-find base-url-pattern file)
233
(-> file
234
(string/replace base-url-pattern "")
0 commit comments