mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-10 18:30:24 +01:00
Optimize
This commit is contained in:
@@ -98,7 +98,7 @@ fn get_query(cq: CallbackQuery) -> Option<String> {
|
||||
.map(|reply_to_message| {
|
||||
reply_to_message
|
||||
.text()
|
||||
.map(|text| text.replace('/', "").replace('&', "").replace('?', ""))
|
||||
.map(|text| text.replace(['/', '&', '?'], ""))
|
||||
})
|
||||
.unwrap_or(None)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user