Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find/replace overlay: do not escape selected text when not regex #2270 #2271

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

HeikoKlare
Copy link
Contributor

When opening the find/replace overlay with a text selection in the target editor, this text is set as the find input to the overlay. When in regex mode, the string is escaped accordingly. Currently, the string is also escaped when regex mode is not activated.

With this change, the find input string is not escaped when regex mode is not activated. An according test case is added.

Fixes #2270

Copy link
Contributor

github-actions bot commented Sep 14, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 30m 40s ⏱️ +29s
 7 699 tests +2   7 470 ✅ +1  228 💤 ±0  1 ❌ +1 
24 258 runs  +6  23 508 ✅ +5  749 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 58f7314. ± Comparison against base commit 0347754.

♻️ This comment has been updated with latest results.

…pse-platform#2270

When opening the find/replace overlay with a text selection in the
target editor, this text is set as the find input to the overlay. When
in regex mode, the string is escaped accordingly. Currently, the string
is also escaped when regex mode is not activated.

With this change, the find input string is not escaped when regex mode
is not activated. An according test case is added.

Fixes eclipse-platform#2270
@HeikoKlare HeikoKlare merged commit ecb96d5 into eclipse-platform:master Sep 15, 2024
15 of 16 checks passed
@HeikoKlare HeikoKlare deleted the issue-2270 branch September 15, 2024 19:11
@deepika-u
Copy link
Contributor

I verified this fix and it works fine on below build

Eclipse SDK
Version: 2024-12 (4.34)
Build id: I20240917-1800
OS: Windows 11, v.10.0, x86_64 / win32
Java vendor: Eclipse Adoptium
Java runtime version: 21.0.1+12-LTS
Java version: 21.0.1

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

Successfully merging this pull request may close these issues.

[Find/Replace] Pre-selected search string is always escaped even if RegEx search is disabled
2 participants