From 8f607de53289f8c0fe479ed2daa592ce41c4c689 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 13 Apr 2024 00:59:56 -0500 Subject: [PATCH] trim numbat autocomplete so it doesn't get duplicated with google's calculator --- src/engines/answer/numbat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engines/answer/numbat.rs b/src/engines/answer/numbat.rs index 4b1da02..d71b8de 100644 --- a/src/engines/answer/numbat.rs +++ b/src/engines/answer/numbat.rs @@ -109,7 +109,7 @@ fn evaluate_for_autocomplete(query: &str) -> Option { InterpreterResult::Continue => return None, }; - Some(res_markup.to_string()) + Some(res_markup.to_string().trim().to_string()) } pub struct NumbatResponse {