Skip to content
Snippets Groups Projects
Unverified Commit 5daea122 authored by Ngoc Khuat's avatar Ngoc Khuat Committed by GitHub
Browse files

Fix broken jar after #28133 (#28209)

parent 8fb9f881
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
[clojure.walk :as walk]
[flatland.ordered.map :refer [ordered-map]]
[medley.core :as m]
[metabase.shared.util.i18n :refer [tru] :as i18n]
[metabase.shared.util.i18n :refer [tru] :as shared.i18n]
[metabase.shared.util.namespaces :as u.ns]
[metabase.util.format :as u.format]
[metabase.util.log :as log]
......@@ -18,6 +18,7 @@
[metabase.config :as config]
#_{:clj-kondo/ignore [:discouraged-namespace]}
[metabase.util.jvm :as u.jvm]
[metabase.util.i18n :as i18n]
[potemkin :as p]
[ring.util.codec :as codec]]))
#?(:clj (:import
......@@ -320,8 +321,8 @@
;; next, remove the combining diacritical marks -- this SO answer explains what's going on here best:
;; http://stackoverflow.com/a/5697575/1198455 The closest thing to a relevant JavaDoc I could find was
;; http://docs.oracle.com/javase/7/docs/api/java/lang/Character.UnicodeBlock.html#COMBINING_DIACRITICAL_MARKS
#"\p{Block=CombiningDiacriticalMarks}+"
"")
#"\p{Block=CombiningDiacriticalMarks}+"
"")
:cljs (-> s
(.normalize "NFKD") ;; Renders accented characters as base + accent.
(.replace (js/RegExp. "[\u0300-\u036f]" "gu") ""))))) ;; Drops all the accents.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment