Use g_str_match_string() instead of custom matching code
@hadess
Submitted by Bastien Nocera Link to original bug (#791198)
Description
See https://bugzilla.gnome.org/show_bug.cgi?id=791066#c15
This would require somebody understanding that code first though.