From 74550141ce580d7e808c08e55620cfd4f263f846 Mon Sep 17 00:00:00 2001 From: Mark Wardle Date: Sat, 16 Sep 2023 22:19:52 +0100 Subject: [PATCH] Avoid reflection --- src/com/eldrix/hermes/impl/language.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/eldrix/hermes/impl/language.clj b/src/com/eldrix/hermes/impl/language.clj index 21fa4577..6f8837b1 100644 --- a/src/com/eldrix/hermes/impl/language.clj +++ b/src/com/eldrix/hermes/impl/language.clj @@ -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) "")))))