Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Find in Files treats \n, \r, etc. as regular expressions #971

@peterflynn

Description

@peterflynn
  1. Use Find in Files to search for the string \n

Result: Brackets hangs for a while, then produces 100,000+ search results (one for every line of code).

Expected: only files that contain the string "\n". (The search query is only supposed to get interpreted as a regexp if it's wrapped like /\n/).

Looks like a straightforward missed case in the escaping done by FindInFiles._getQueryRegExp().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions