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

No results when searching with regexes containing \n #362

Closed
floscher opened this issue Mar 7, 2015 · 2 comments
Closed

No results when searching with regexes containing \n #362

floscher opened this issue Mar 7, 2015 · 2 comments
Labels

Comments

@floscher
Copy link

floscher commented Mar 7, 2015

I've a fresh Atom 0.186.0 on Ubuntu 14.10 with no additional packages.

When I use "Find in project" with any regex that contains \n it always tells me there are no results.

newline-search

@winstliu winstliu added the bug label Mar 7, 2015
@floscher
Copy link
Author

The issue still holds after installing 0.187.0 via *.deb file.
Other special characters (like \t or even \r) still work. But as soon as the search term contains \n, nothing is found.
Atom seems to recognize correctly that \n doesn't mean "a backslash and an n", but "line feed" instead. Because if a file in a project contains an actual backslash followed by an n, it still finds nothing.

This bug appeared in every repo or normal folder that I open in Atom since reporting the bug.

@lee-dohm
Copy link
Contributor

This is really just a special case of #218. Currently, Find in Project doesn't support multi-line patterns. See the referenced issue for details and please subscribe there for updates.

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

No branches or pull requests

3 participants