From 3b929041f2d0525344e8db2340afd614b2d3d66d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 24 Jan 2024 15:22:01 +0100 Subject: [PATCH] :bug: Fix incorrect percent number parsing on reading svg --- common/src/app/common/svg.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/svg.cljc b/common/src/app/common/svg.cljc index b91e4726f2..cd7ecf2986 100644 --- a/common/src/app/common/svg.cljc +++ b/common/src/app/common/svg.cljc @@ -980,7 +980,7 @@ (fix-percent-attr-numeric [_ attr-val] (let [is-percent? (str/ends-with? attr-val "%")] (if is-percent? - (str (let [attr-num (d/parse-double attr-val)] + (str (let [attr-num (d/parse-double (str/rtrim attr-val "%"))] (/ attr-num 100))) attr-val)))