Skip to content

Commit

Permalink
Avoid reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
wardle committed Sep 16, 2023
1 parent 7737a1c commit 7455014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/eldrix/hermes/impl/language.clj
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
(fn [s]
(let [exclude (set (str excluded-chars (str/upper-case excluded-chars)))
s (->> (seq (normalize-nfkc s))
(map #(if (.contains exclude %) % (normalize-nfkd (str %))))
(map #(if (contains? exclude %) % (normalize-nfkd (str %))))
(apply str))]
(.replaceAll (.matcher #"\p{M}" s) "")))))

Expand Down

0 comments on commit 7455014

Please sign in to comment.