for (tag = tags->first; tag != NULL; tag = tag->next)
{
-#ifdef HAVE_PCRE2
- if (pcre2_pattern_matches(pattern->pattern.tag_regex, tag->str))
-#else
- if (0 == regexec(pattern->pattern.tag_regex, tag->str, 0, NULL, 0))
-#endif
+ if (regex_matches(pattern->pattern.tag_regex, tag->str))
{
log_error(LOG_LEVEL_TAGGING, "Client tag '%s' matches.", tag->str);
return 1;