validate: Place regex flags at the start of the regex
authorJan Schmidt <jan@centricular.com>
Mon, 26 Dec 2022 13:24:36 +0000 (00:24 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 28 Dec 2022 10:04:41 +0000 (10:04 +0000)
commit794ffe6ec6cb777b72d2a3ecc79a50def2a5c82d
tree8426907e92da3343e30e9ea19972bf06c8c2d49d
parentce2c29411774942815a68b6e2039f1152753d191
validate: Place regex flags at the start of the regex

In Python 3.11 it is an error to have regex flags in the middle
of an expression, so make sure they appear at the start.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1630

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3643>
subprojects/gst-devtools/validate/launcher/apps/gstvalidate.py
subprojects/gst-devtools/validate/launcher/baseclasses.py