Remove ‘not_regular_expression’ operator also from date_filter plugin

Created on 25 June 2025, 14 days ago

Problem/Motivation

The date_filter module removes the regular_expression operator from Views filter options, recognizing that regex does not make sense for date fields. However, the complementary not_regular_expression operator is still present and should also be removed to prevent exposing invalid or confusing options.

Steps to reproduce

  1. Create a View with a date field filter using the date_filter module enabled, expose operators.
  2. Inspect the available operators.
  3. Notice that regular_expression is removed, but not_regular_expression is still listed.

Proposed resolution

Update DateBase::operators() to also unset the not_regular_expression operator so that both regex-related options are excluded from the filter.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024