mirror of
https://github.com/open-webui/computer.git
synced 2026-11-29 16:35:22 -05:00
refac
This commit is contained in:
1 parent
e46db91f04
commit
049280219b
6 files changed
+206
-7
No files matched your search
+1
-1
@@ -227,7 +227,7 @@ async def _search_rg(
|
||||
raise FileNotFoundError(err) if "not found" in err.lower() else Exception(err)
|
||||
|
||||
# Make paths relative
|
||||
prefix = str(full) + "/"
|
||||
prefix = str(full) + os.sep
|
||||
lines = output.splitlines()[:50]
|
||||
result = [line.replace(prefix, "") for line in lines]
|
||||
return "\n".join(result) if result else "No matches found."
|
||||
|
||||
Reference in new issue
Block a user