Commit 7a214e8f authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

wp_properties_match: use wildcard pattern matching instad of strict string comparison

parent a11cd3b6
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment