4343bootstrap = APIRouter (prefix = "/bootstrap" , tags = ["bootstrap" ])
4444cygwin = APIRouter (prefix = "/cygwin" , tags = ["bootstrap" ])
4545msys2 = APIRouter (prefix = "/msys2" , tags = ["bootstrap" ])
46- win_terminal = APIRouter (prefix = "/win_terminal " , tags = ["bootstrap" ])
46+ windows_terminal = APIRouter (prefix = "/microsoft/terminal " , tags = ["bootstrap" ])
4747pypi = APIRouter (prefix = "/pypi" , tags = ["bootstrap" ])
4848plugins = APIRouter (prefix = "/plugins" , tags = ["bootstrap" ])
4949
@@ -534,7 +534,7 @@ def get_msys2_package_file(
534534 # Validate package name
535535 ## MSYS2 package names contain alphanumerics (includes "_"; \w), periods (\.),
536536 ## dashes (\-), and tildes (~)
537- if bool (re .fullmatch (r"^[\w\.\-~]+$" , package )) is False :
537+ if bool (re .fullmatch (r"^[\w\.\-\+ ~]+$" , package )) is False :
538538 raise ValueError (f"{ package !r} is not a valid package name" )
539539
540540 # Construct URL to main MSYS repo and get response
@@ -555,21 +555,25 @@ def get_msys2_package_file(
555555WINDOWS TERMINAL-RELATED FUNCTIONS AND ENDPOINTS
556556"""
557557
558- @win_terminal .get ("/releases" , response_class = Response )
558+
559+ @windows_terminal .get ("/releases" , response_class = Response )
559560def get_windows_terminal_repository ():
560561 pass
561562
562- @win_terminal .get ("/releases/{version}" , response_class = Response )
563+
564+ @windows_terminal .get ("/releases/{version}" , response_class = Response )
563565def get_windows_terminal_version_packages (version = str ):
564566 pass
565567
566- @win_terminal .get ("/releases/{version}/{file_name}" , response_class = Response )
568+
569+ @windows_terminal .get ("/releases/{version}/{file_name}" , response_class = Response )
567570def get_windows_terminal_package_file (
568571 version : str ,
569572 file_name : str ,
570573):
571574 pass
572575
576+
573577"""
574578PYPI-RELATED FUNCTIONS AND ENDPOINTS
575579"""
0 commit comments