- /* Is it a positive tag pattern? */
- if (0 == strncmpic(pattern->spec, "TAG:", 4))
- {
- /* The pattern starts with the first character after "TAG:" */
- const char *tag_pattern = buf + 4;
- pattern->flags |= PATTERN_SPEC_TAG_PATTERN;
- return compile_pattern(tag_pattern, NO_ANCHORING, pattern, &pattern->pattern.tag_regex);
- }
- /* Is it a negative tag pattern? */
- if (0 == strncmpic(pattern->spec, "NO-REQUEST-TAG:", 15))
- {
- /* The pattern starts with the first character after "NO-REQUEST-TAG:" */
- const char *tag_pattern = buf + 15;
- pattern->flags |= PATTERN_SPEC_NO_REQUEST_TAG_PATTERN;
- return compile_pattern(tag_pattern, NO_ANCHORING, pattern, &pattern->pattern.tag_regex);
- }
- if (0 == strncmpic(pattern->spec, "NO-RESPONSE-TAG:", 16))