mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-08 09:30:45 +01:00
Fix
This commit is contained in:
@@ -148,7 +148,7 @@ impl FromStr for DownloadArchiveCommand {
|
|||||||
type Err = strum::ParseError;
|
type Err = strum::ParseError;
|
||||||
|
|
||||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||||
let re = Regex::new(r"^/da_(?P<type>[s|a|t])_(?P<id>\d+)_(?P<file_type>\w+)$").unwrap();
|
let re = Regex::new(r"^/da_(?P<type>[s|a|t])_(?P<id>\d+)$").unwrap();
|
||||||
|
|
||||||
let caps = re.captures(s);
|
let caps = re.captures(s);
|
||||||
let caps = match caps {
|
let caps = match caps {
|
||||||
|
|||||||
Reference in New Issue
Block a user