From d518204c872a5dabcdfc29b6d945b343b79e1430 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 9 Jan 2024 13:52:56 -0600 Subject: [PATCH] remove unfinished timezone engine --- src/engines/answer/timezone.rs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/engines/answer/timezone.rs diff --git a/src/engines/answer/timezone.rs b/src/engines/answer/timezone.rs deleted file mode 100644 index 8b0ba68..0000000 --- a/src/engines/answer/timezone.rs +++ /dev/null @@ -1,21 +0,0 @@ -use std::{cell::Cell, sync::LazyLock}; - -use fend_core::SpanKind; - -use crate::engines::EngineResponse; - -use super::regex; - -pub fn request(query: &str) -> EngineResponse { - let query = clean_query(query.to_string()); - - let Some(result_html) = evaluate(&query, true) else { - return EngineResponse::new(); - }; - - EngineResponse::answer_html(format!( - r#"

{query} =

-

{result_html}

"#, - query = html_escape::encode_text(&query), - )) -}