[Libosinfo] [libosinfo PATCH 1/2] Revert "db: Force anchored patterns when matching regex"
Fabiano Fidêncio
fidencio at redhat.com
Thu Oct 4 10:51:18 UTC 2018
Daniel suggested that the fix should go to the osinfo-db entries that
are causing the issue instead of forcing anchored patterns in libosinfo.
This reverts commit e6168463f4fc659b9827b5c8694dc1c6d7d5239a.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
osinfo/osinfo_db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c
index f4b3a8c..fa14c6d 100644
--- a/osinfo/osinfo_db.c
+++ b/osinfo/osinfo_db.c
@@ -37,7 +37,7 @@ G_DEFINE_TYPE(OsinfoDb, osinfo_db, G_TYPE_OBJECT);
#define match_regex(pattern, str) \
(((pattern) == NULL) || \
(((str) != NULL) && \
- g_regex_match_simple((pattern), (str), 0, G_REGEX_MATCH_ANCHORED)))
+ g_regex_match_simple((pattern), (str), 0, 0)))
static gchar *get_raw_lang(const char *volume_id, const gchar *regex_str)
{
--
2.19.0
More information about the Libosinfo
mailing list