Don't use G_REGEX_MATCH_PARTIAL_HARD

Introduced in glib 2.34, but ncdc currently supports 2.24.