From 6c88dec1489af85fda385d27ebb56e59a3620930 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 3 Jul 2024 06:34:29 +0200 Subject: [PATCH] fix(web): uri pretty len check mismatch --- web/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 56d3e970..dd5e5ed1 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -206,7 +206,7 @@ impl Uri { pub fn pretty(url: &str) -> String { let bare = url.replace("https://", ""); - if url.len() < 50 { + if bare.len() < 50 { bare } else { format!("{}..", bare.get(..50).unwrap_or_default())