From ffad6869c98c1e4576368539b03624e1626e9b93 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 14 Mar 2024 23:47:53 -0500 Subject: [PATCH] love you wikipedia --- src/engines/answer/wikipedia.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engines/answer/wikipedia.rs b/src/engines/answer/wikipedia.rs index 22900a6..678f84d 100644 --- a/src/engines/answer/wikipedia.rs +++ b/src/engines/answer/wikipedia.rs @@ -79,10 +79,9 @@ pub fn parse_response(body: &str) -> eyre::Result { while previous_extract != extract { previous_extract = extract.clone(); extract = extract + .replace("( ", "(") .replace("(, ", "(") .replace("(; ", "(") - .replace("( ; ", "(") - .replace("( )", "") .replace("()", ""); }