Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gitingest/query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _is_valid_pattern(pattern: str) -> bool:

This function checks if the pattern contains only alphanumeric characters or one
of the following allowed characters: dash (`-`), underscore (`_`), dot (`.`),
forward slash (`/`), plus (`+`), or asterisk (`*`).
forward slash (`/`), plus (`+`), asterisk (`*`), or the at sign (`@`).

Parameters
----------
Expand All @@ -387,7 +387,7 @@ def _is_valid_pattern(pattern: str) -> bool:
bool
True if the pattern is valid, otherwise False.
"""
return all(c.isalnum() or c in "-_./+*" for c in pattern)
return all(c.isalnum() or c in "-_./+*@" for c in pattern)


async def try_domains_for_user_and_repo(user_name: str, repo_name: str) -> str:
Expand Down