Skip to content

misc: use g_regex_match() for simplicity

Ben Chan requested to merge benchan/ModemManager:g-regex-match into master

This CL converts a few g_regex_match_full() expressions to their equivalent g_regex_match() in order to simplify the code, i.e.

g_regex_match_full (regex, str, strlen (str), 0, 0, &match_info, NULL)

is equivalent to:

g_regex_match_full (regex, str, -1, 0, 0, &match_info, NULL)

or simply:

g_regex_match (regex, str, 0, &match_info)

Merge request reports

Loading