Skip to content

Conversation

@msukkari
Copy link
Contributor

Fixes search failure for repositories with port numbers in their URLs.

The search parser was incorrectly including leading whitespace in the extracted value for prefix expressions (e.g., repo: ), causing repository names like localhost:12030/testrepo to be used instead of localhost:12030/testrepo. This mismatch prevented searches from returning results. The fix adds a .trim() call to ensure only the actual value is used.


Linear Issue: SOU-83

Open in Cursor Open in Web

This fixes an issue where whitespace between a prefix keyword and its
value (e.g., 'repo: localhost:12030/testrepo' with a space after 'repo:')
would cause the value to include the leading space, resulting in failed
searches.

The grammar captures text from the start of the prefix keyword to the
end of the value, so any whitespace between them was included. By
trimming the extracted value, we ensure proper matching.

Also adds test cases for:
- Repos with ports in URLs (e.g., localhost:12030/testrepo)
- Multiple repos with ports in reposet filters
- Combined repoNamesFilter and repoNamesFilterRegexp with ports

Co-authored-by: michael <[email protected]>
@cursor
Copy link

cursor bot commented Jan 15, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Jan 15, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

3 participants