From ec28d2a2a26fc88575fbfc36bc32762999a74e81 Mon Sep 17 00:00:00 2001 From: Mori Zen <71zenith@protonmail.com> Date: Thu, 16 Mar 2023 20:59:47 +0530 Subject: [PATCH] fix: account for point episodes having multiple digits (e.g. 124.125) (#1066) --- ani-cli | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ani-cli b/ani-cli index 90f9ced68..ce0d29395 100755 --- a/ani-cli +++ b/ani-cli @@ -1,6 +1,6 @@ #!/bin/sh -version_number="4.2.0" +version_number="4.2.1" # UI @@ -240,8 +240,8 @@ play_episode() { } play() { - start=$(printf "%s" "$ep_no" | grep -Eo '^(-1|[0-9]+(\.[0-9])?)') - end=$(printf "%s" "$ep_no" | grep -Eo '(-1|[0-9]+(\.[0-9])?)$') + start=$(printf "%s" "$ep_no" | grep -Eo '^(-1|[0-9]+(\.[0-9]+)?)') + end=$(printf "%s" "$ep_no" | grep -Eo '(-1|[0-9]+(\.[0-9]+)?)$') [ "$start" = "-1" ] && ep_no=$(printf "%s" "$ep_list" | tail -n1) && unset start [ -z "$end" ] || [ "$end" = "$start" ] && unset start end [ "$end" = "-1" ] && end=$(printf "%s" "$ep_list" | tail -n1)