fix wikipedia extract sometimes showing '( ;'
This commit is contained in:
parent
1b33fbc3fa
commit
0f83e6122e
@ -74,7 +74,10 @@ pub fn parse_response(body: &str) -> eyre::Result<EngineResponse> {
|
|||||||
return Ok(EngineResponse::new());
|
return Ok(EngineResponse::new());
|
||||||
}
|
}
|
||||||
|
|
||||||
let extract = extract.replace("( )", "").replace("()", "");
|
let extract = extract
|
||||||
|
.replace("( ;", "(")
|
||||||
|
.replace("( )", "")
|
||||||
|
.replace("()", "");
|
||||||
|
|
||||||
let page_title = title.replace(' ', "_");
|
let page_title = title.replace(' ', "_");
|
||||||
let page_url = format!("https://en.wikipedia.org/wiki/{page_title}");
|
let page_url = format!("https://en.wikipedia.org/wiki/{page_title}");
|
||||||
|
Loading…
Reference in New Issue
Block a user