diff --git a/src/engines/answer/notepad.rs b/src/engines/answer/notepad.rs index 9f75a89..e80ffaa 100644 --- a/src/engines/answer/notepad.rs +++ b/src/engines/answer/notepad.rs @@ -5,7 +5,8 @@ use crate::engines::{EngineResponse, SearchQuery}; use super::regex; pub fn request(query: &SearchQuery) -> EngineResponse { - if !regex!("(note|text|code) ?(pad|book|edit(or|er)?)").is_match(&query.query.to_lowercase()) { + if !regex!("^(note|text|code) ?(pad|book|edit(or|er)?)$").is_match(&query.query.to_lowercase()) + { return EngineResponse::new(); } @@ -13,6 +14,6 @@ pub fn request(query: &SearchQuery) -> EngineResponse { // `contenteditable="plaintext-only"` attribute currently only works on Chrome. // This should be updated when the attribute becomes available in more browsers EngineResponse::answer_html(html! { - div."answer-notepad" contenteditable="plaintext-only" {} + div."answer-notepad" contenteditable {} }) }