Skip to content

Table filter "does not contain" is case-sensitive while "contains" is not #1322

Closed
logseq/logseq
#13487

Description

@yuxi-liu-wired

Steps

  1. Create a tag Topic with a Text property "note".
  2. Tag a block with #Topic and set its "note" to "Apple".
  3. On the Topic page, filter the table by "note" contains "apple".
  4. Change the filter's operator to "does not contain", keeping "apple".

Expected

Exactly one of the 2 filters shows the block.

Actual

Both filters show the block. "contains" ignores case, "does not contain" does not.

Cause

In deps/db/src/logseq/db/common/view.cljs, match-text-or-number-clause lower-cases both sides for :text-contains and neither side for :text-not-contains; row-matched? (used by query tables) does the same.

Found with a model-based property test of table views that checks a filter against its negation, replayed on upstream master 16c4ed1a0.

Activity

  1. yuxi-liu-wired commented on Oct 6, 2026

    @yuxi-liu-wired
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions