Skip to content

Commit

Permalink
fix bug (#3149)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwzeng1 committed Feb 23, 2024
1 parent 6565b66 commit 6430b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sweepai/core/lexical_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def snippets_to_docs(snippets: list[Snippet], len_repo_cache_dir):
for snippet in snippets:
docs.append(
Document(
title=f"{snippet.file_path[len_repo_cache_dir:]}{snippet.start}-{snippet.end}",
title=f"{snippet.file_path[len_repo_cache_dir:]}:{snippet.start}-{snippet.end}",
content=snippet.get_snippet(add_ellipsis=False, add_lines=False),
)
)
Expand Down

0 comments on commit 6430b99

Please sign in to comment.