Bring the version matching regex pattern in line with the others in the
tree so that it can also match a string without -rcX or -devel suffix.
Fixes: e090088c21b7 ("bindings: add GLib bindings")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
GPIOD_TEST_CASE(version_string)
{
- static const gchar *const pattern = "^\\d+\\.\\d+(\\.\\d+|\\-devel|\\-rc\\d+)$";
+ static const gchar *const pattern = "^\\d+\\.\\d+(\\.\\d+|\\-devel|\\-rc\\d+)?$";
g_autoptr(GError) err = NULL;
g_autoptr(GRegex) regex = NULL;