From a4b571fc3da82013dd85f4310660dcc0371863aa Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Mon, 16 Dec 2024 21:27:14 +0300 Subject: [PATCH] fix truncate --- src/post/blag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/post/blag.rs b/src/post/blag.rs index 5dead2a..4a95ebe 100644 --- a/src/post/blag.rs +++ b/src/post/blag.rs @@ -157,7 +157,7 @@ impl PostManager for Blag { }; if self.is_raw(&name) { - name.truncate(3); + name.truncate(name.len() - 3); set.push(self.get_post(name.into(), query)); } }