Skip to content

Commit edae3cc

Browse files
authored
tweak: add @ to allowed symbols (#167)
1 parent 9aee15f commit edae3cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gitingest/query_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def _is_valid_pattern(pattern: str) -> bool:
375375
376376
This function checks if the pattern contains only alphanumeric characters or one
377377
of the following allowed characters: dash (`-`), underscore (`_`), dot (`.`),
378-
forward slash (`/`), plus (`+`), or asterisk (`*`).
378+
forward slash (`/`), plus (`+`), asterisk (`*`), or the at sign (`@`).
379379
380380
Parameters
381381
----------
@@ -387,7 +387,7 @@ def _is_valid_pattern(pattern: str) -> bool:
387387
bool
388388
True if the pattern is valid, otherwise False.
389389
"""
390-
return all(c.isalnum() or c in "-_./+*" for c in pattern)
390+
return all(c.isalnum() or c in "-_./+*@" for c in pattern)
391391

392392

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

0 commit comments

Comments
 (0)