From a306d836a968df45ca0c4d02181eb95f726fb977 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Thu, 1 Jun 2023 22:51:04 -0400 Subject: [PATCH] Allow dots in VM names Fixes: QubesOS/qubes-issues#8199 --- qubes/vm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/vm/__init__.py b/qubes/vm/__init__.py index 14503c7c5..c6d2dfcf9 100644 --- a/qubes/vm/__init__.py +++ b/qubes/vm/__init__.py @@ -53,7 +53,7 @@ def validate_name(holder, prop, value): # this regexp does not contain '+'; if it had it, we should specifically # disallow 'lost+found' #1440 - if re.match(r"\A[a-zA-Z][a-zA-Z0-9_-]*\Z", value) is None: + if re.match(r"\A[a-zA-Z][a-zA-Z0-9_.-]*\Z", value) is None: if holder is not None and prop is not None: raise qubes.exc.QubesPropertyValueError(holder, prop, value, '{} value contains illegal characters'.format(prop.__name__))