Search in code does not work over line breaks

Summary

When using the search function to search for some code it does not work over line breaks. So when searching for something like foo bar it does not work if the code is actually

foo
bar

Steps to reproduce & example project

I discovered this when searching for This is a Quality team triage package that aims to collate the stale issues For more information please refer to the handbook: in this search: https://gitlab.com/search?project_id=7776928&scope=blobs&search=This+is+a+Quality+team+triage+package+that+aims+to+collate+the+stale+issues+For+more+information+please+refer+to+the+handbook%3A while https://gitlab.com/search?utf8=%E2%9C%93&snippets=&scope=blobs&search=This+is+a+Quality+team+triage+package+that+aims+to+collate+the+stale+issues&project_id=7776928 works.

Edited Jul 07, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading