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

Commit

Permalink
Merge pull request #17 from PEZ/require-clojure-string
Browse files Browse the repository at this point in the history
Add missing require of `clojure.string`, fixes #16
  • Loading branch information
danielcompton authored Feb 19, 2019
2 parents 5ed0980 + 48fbf7f commit ae714b6
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 ae714b6

Please sign in to comment.