From d564fc70b05e3883026163c6d85b6e476615cd95 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 7 Apr 2024 20:01:28 +0000 Subject: [PATCH] fix extra space in some wikipedia extracts --- src/engines/answer/wikipedia.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engines/answer/wikipedia.rs b/src/engines/answer/wikipedia.rs index a0ba7da..e956683 100644 --- a/src/engines/answer/wikipedia.rs +++ b/src/engines/answer/wikipedia.rs @@ -82,6 +82,7 @@ pub fn parse_response(body: &str) -> eyre::Result { .replace("( ", "(") .replace("(, ", "(") .replace("(; ", "(") + .replace(" ()", "") .replace("()", ""); }