Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Project-wide regex search using \n does not find any matches #995

Closed
1 task done
Conduitry opened this issue Feb 14, 2018 · 1 comment
Closed
1 task done

Project-wide regex search using \n does not find any matches #995

Conduitry opened this issue Feb 14, 2018 · 1 comment

Comments

@Conduitry
Copy link

Prerequisites

Description

Regular expressions containing newlines (\n) do not find any matches when doing a project-wide search.

Steps to Reproduce

  1. Create a file in a project containing at least one newline (with unix line endings to avoid CR/LF confusion).
  2. Start up project-wide search, in regex mode.
  3. Type in \n and confirm that the newlines in the file are highlighted (as the automatic current-file search runs).
  4. Press enter to perform the search across the entire project.

Expected behavior: All instances of the regex should be found.

Actual behavior: No instances of the regex are found.

Reproduces how often: Every time.

Versions

Atom 1.25-beta0, Windows 10, x64 - although this is not the first version it occurred in. I'm not sure when/if this was ever working.

@winstliu
Copy link
Contributor

This is a consequence of #218 - project-wide searches currently search line-by-line. Feel free to subscribe to that issue for updates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants