Temp: fix bug with get_frame_id for frame starting with digit(s)
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 5 Oct 2023 22:29:42 +0000 (18:29 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 15:45:53 +0000 (11:45 -0400)
fgen.sh

diff --git a/fgen.sh b/fgen.sh
index a0c3800..05cbb1d 100755 (executable)
--- a/fgen.sh
+++ b/fgen.sh
@@ -62,7 +62,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]\+\),.*/\1/g")
 
     if [ x"${frame}" = x"" ]; then
         echo ""