From 7a214e8fab4f8d5517dd889f19a5fbf894b8cddd Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Thu, 5 Dec 2019 12:41:45 +0200 Subject: [PATCH] wp_properties_match: use wildcard pattern matching instad of strict string comparison --- lib/wp/properties.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wp/properties.c b/lib/wp/properties.c index 448c9caa..22951665 100644 --- a/lib/wp/properties.c +++ b/lib/wp/properties.c @@ -276,10 +276,9 @@ wp_properties_matches (WpProperties * self, WpProperties *other) dict = wp_properties_peek_dict (self); spa_dict_for_each(item, dict) { value = wp_properties_get (other, item->key); - if (value && g_strcmp0 (item->value, value) != 0) + if (value && !g_pattern_match_simple (value, item->value)) return FALSE; } return TRUE; } -