From: Hugo Villeneuve Date: Sat, 7 Oct 2023 03:20:38 +0000 (-0400) Subject: Allow other character after number in label (new frame ID) X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=7283be718ea35c5c4844077fd6fa10813c7aa3b9;p=fgen.git Allow other character after number in label (new frame ID) --- diff --git a/fgen.sh b/fgen.sh index 6e66b49..f50e000 100755 --- a/fgen.sh +++ b/fgen.sh @@ -58,7 +58,7 @@ function get_label() # Arg1: line function get_frame_id() { - frame=$(echo "${1}" | grep -e "label:[0-9]\+," | ${SED} "s/.*label:\([0-9]\+\),.*/\1/g") + frame=$(echo "${1}" | grep -e "label:[0-9]\+" | ${SED} "s/.*label:\([0-9]\+\).*,geometry.*/\1/g") echo "${frame}" }