atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 196 forks source link

Find in Project fails to find newline characters #1130

Open VeryGoodDog opened 4 years ago

VeryGoodDog commented 4 years ago

Prerequisites

Description

The Find in Project regex will not find any results that contain newlines. If a plain text search has a newline in it, it will not find any results. This doesn't happen with file search, only project search.

Steps to Reproduce

  1. Create a file containing
    test
    test test
  2. Project search for test\s with regex enabled and see that it finds only one result when it should find two.
  3. Project search for
    
    test

(including the extra newline) into the search bar without regex enabled and see that it returns no result when it should find one.

**Reproduces how often:**
100%

### Versions

Atom: 1.50.0
Electron: 5.0.13
Chrome: 73.0.3683.121
Node: 12.0.0
macOS: 10.15.6 (19G73)
shwq774791378 commented 3 years ago

المتطلبات الأساسية

وصف

لن يعثر البحث في Project regex على أية نتائج تحتوي على أسطر جديدة. إذا كان البحث عن نص عادي يحتوي على سطر جديد فيه ، فلن يتم العثور على أية نتائج. هذا لا يحدث مع البحث عن الملفات ، فقط البحث عن المشروع.

خطوات التكاثر

  1. قم بإنشاء ملف يحتوي على
test
test test
  1. البحث عن مشروع test\sمع تمكين regex ومعرفة أنه يجد نتيجة واحدة فقط عندما يجب العثور على اثنتين.
  2. البحث عن مشروع
test

(بما في ذلك السطر الجديد الإضافي) في شريط البحث بدون تمكين regex وتأكد من أنه لا يعرض أي نتيجة عندما يجب أن يجد واحدة.

يستنسخ عدد المرات: 100٪

إصدارات

ذرة: 1.50.0 إلكترون: 5.0.13 كروم: 73.0.3683.121 العقدة: 12.0.0 macOS : 10.15.6 (19G73)

easterncoder commented 2 years ago

any updates on this? i'm experiencing the same.