Allow other character after number in label (new frame ID)
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 03:20:38 +0000 (23:20 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 15:51:24 +0000 (11:51 -0400)
fgen.sh

diff --git a/fgen.sh b/fgen.sh
index 6e66b49..f50e000 100755 (executable)
--- 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}"
 }