Explorar el Código

core: allow '.' in domain name

Wojtek Porczyk hace 9 años
padre
commit
19dfe3d390
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core-modules/000QubesVm.py

+ 1 - 1
core-modules/000QubesVm.py

@@ -543,7 +543,7 @@ class QubesVm(object):
             return False
         if len(name) > 31:
             return False
-        return re.match(r"^[a-zA-Z][a-zA-Z0-9_-]*$", name) is not None
+        return re.match(r"^[a-zA-Z][a-zA-Z0-9_.-]*$", name) is not None
 
     def pre_rename(self, new_name):
         # fire hooks