How to reproduce (Option 1):
1. Create a new Unity project
2. Create three GameObjects named AABB, AABBB and AABBBB
3. Open the Search window
4. In the search bar type in AABB
5. Observe the search results
OR
How to reproduce (Option 2):
1. Create a new Unity project
2. Create three GameObjects named "test", "test_test" and "test_test_test"
3. Open the Search window
4. In the search bar type in "test_test"
5. Observe the search results
Actual result: The found GameObjects have only the “AA” or "test_" part of the name highlighted
Expected result: The found GameObjects have the “AABB” or "test_test" part of the name highlighted
Reproducible with: 2023.3.0b7, 6000.0.66f1, 6000.3.4f1, 6000.4.0b5, 6000.5.0a3
Not reproducible with: 2023.1.0a1, 2023.3.0b6, 6000.5.0a5
Fixed in: 6000.5.0a4
Reproducible on: Windows 11, macOS 26.2 (M1) (by user)
Not reproducible on: No other environments tested
Note: Typing in AABBB in the search bar highlights the correct part of the name in all Unity Editor versions