Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
Add missing require of clojure.string, fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Dec 12, 2018
1 parent 5ed0980 commit 48fbf7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rewrite_clj/parser/string.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
(ns rewrite-clj.parser.string
(:require [rewrite-clj.node :as node]
[rewrite-clj.reader :as r]
[goog.string :as gstring]))
[goog.string :as gstring]
[clojure.string :as string]))

(defn- flush-into
"Flush buffer and add string to the given vector."
Expand Down Expand Up @@ -36,5 +37,5 @@
(defn parse-regex
[^not-native reader]
(let [lines (read-string-data reader)
regex (clojure.string/join "\n" lines)]
regex (string/join "\n" lines)]
(node/token-node (re-pattern regex) (str "#\"" regex "\""))))

0 comments on commit 48fbf7f

Please sign in to comment.