This commit is contained in:
2023-06-07 04:25:19 +02:00
parent 8f2b2ac1e2
commit bdd7c9b2d8

View File

@@ -148,7 +148,7 @@ impl FromStr for DownloadArchiveCommand {
type Err = strum::ParseError;
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 = match caps {