Skip to content

Commit 505976a

Browse files
committed
Allow fuzzy repo owner searching by not splitting search term on /
1 parent d0368aa commit 505976a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bot/src/ghutils/utils/discord/transformers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ async def autocomplete( # pyright: ignore[reportIncompatibleMethodOverride]
4040
value: str,
4141
) -> list[Choice[str]]:
4242
value = value.strip()
43-
if "/" in value:
44-
owner, rest = value.split("/", maxsplit=1)
45-
query = f"{rest} user:{owner} in:name fork:true"
46-
elif value:
43+
if value:
4744
query = f"{value} in:name fork:true"
4845
else:
4946
with GHUtilsBot.db_session_of(interaction) as session:

0 commit comments

Comments
 (0)