Skip to content

Commit 4f28053

Browse files
committed
Fix reflection for codePointCount
1 parent fd2e714 commit 4f28053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cljfmt/src/cljfmt/core.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
(subs s (inc (.lastIndexOf s "\n"))))
196196

197197
(defn- line-length [line]
198-
#?(:clj (.codePointCount line 0 (.length line))
198+
#?(:clj (.codePointCount ^String line 0 (.length ^String line))
199199
:cljs (.-length (js/Array.from line))))
200200

201201
(defn- margin [zloc]

0 commit comments

Comments
 (0)