lorax: allow '.' in image label
Otherwise "R3.2" will end up as "R3-2".
This commit is contained in:
parent
8d5bab3f4c
commit
2ea4a511ff
@ -11,7 +11,7 @@ from distutils.version import LooseVersion
|
|||||||
|
|
||||||
## Don't allow spaces or escape characters in the iso label
|
## Don't allow spaces or escape characters in the iso label
|
||||||
def valid_label(ch):
|
def valid_label(ch):
|
||||||
return ch.isalnum() or ch == '_'
|
return ch.isalnum() or ch in ('_', '.')
|
||||||
|
|
||||||
isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
|
isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
|
||||||
%>
|
%>
|
||||||
|
Loading…
Reference in New Issue
Block a user