mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Fix offset in interactive season choosing
This commit is contained in:
parent
fbc98b2308
commit
e4919e80ba
1 changed files with 1 additions and 1 deletions
|
|
@ -646,7 +646,7 @@ pub(crate) fn interactive_season_choosing(seasons: Vec<Media<Season>>) -> Vec<Me
|
||||||
let mut nums = vec![];
|
let mut nums = vec![];
|
||||||
for capture in input_regex.captures_iter(&user_input) {
|
for capture in input_regex.captures_iter(&user_input) {
|
||||||
if let Some(single) = capture.name("single") {
|
if let Some(single) = capture.name("single") {
|
||||||
nums.push(single.as_str().parse().unwrap());
|
nums.push(single.as_str().parse::<usize>().unwrap() - 1);
|
||||||
} else {
|
} else {
|
||||||
let range_from = capture.name("range_from");
|
let range_from = capture.name("range_from");
|
||||||
let range_to = capture.name("range_to");
|
let range_to = capture.name("range_to");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue