mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 07:43:36 +05:00
fix: use raw strings for regex parameter in get_string_input (#612)
fixes #602 Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -51,7 +51,7 @@ def change_system_hostname() -> None:
|
||||
)
|
||||
hostname = get_string_input(
|
||||
"Enter the new hostname",
|
||||
regex="^[a-z0-9]+([a-z0-9-]*[a-z0-9])?$",
|
||||
regex=r"^[a-z0-9]+([a-z0-9-]*[a-z0-9])?$",
|
||||
)
|
||||
if not get_confirm(f"Change the hostname to '{hostname}'?", default_choice=False):
|
||||
Logger.print_info("Aborting hostname change ...")
|
||||
|
||||
Reference in New Issue
Block a user