Correct regular expression of volume type extra spec key
The "-" in the regex group has to be the first or the last character,
otherwise it counts as a range.
This is a follow-up patch of
@@ -22,7 +22,7 @@ from horizon import forms
from horizon import messages
-KEY_NAME_REGEX = re.compile(r"^[a-zA-Z0-9-_.:]+$", re.UNICODE)
+KEY_NAME_REGEX = re.compile(r"^[a-zA-Z0-9_.:-]+$", re.UNICODE)
KEY_ERROR_MESSAGES = {
'invalid': _('Key names can only contain alphanumeric characters, '
'underscores, periods, colons and hyphens')}
