Skip to content

Negative regex filename search does not work #3767

@mdpenguin

Description

@mdpenguin

Distribution

Mint 22.3

Package version

6.6.3

Frequency

Always

Bug description

Negative regex searching doesn't work as expected using standard JavaScript RegExp notation

Steps to reproduce

  1. Folder has more than one file: test.log and test.sh
  2. Search for !h$, ^h$, !(sh$), or (?!sh$) to exclude test.sh
  3. Note that no results are returned for the first three and all files are returned for the negative lookahead

Folder with both files:
Image

Search for sh$ works as expected:
Image

Negative searches don't work as expected:

Image Image Image

Negative look ahead returns all files:

Image

Expected behavior

Searching using negation returns everything but the negated pattern

Additional information

No response

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