Fixes input validation in angular kepyairs.

Modifies the regexp used by the angular form validation
to match the allowed characters in Nova API as well
as the description thereof.

Change-Id: I5bb1c1cc531565416efbce16994306cb9ad79000
Closes-bug: #1743887
This commit is contained in:
Marek 2018-08-30 10:03:47 +02:00
parent 122bbcace9
commit f269ab3b22
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<p translate>
Key Pairs are how you login to your instance after it is launched.
Choose a key pair name you will recognize.
Names may only include alphanumeric characters, spaces, or dashes.
Names may only include alphanumeric characters, spaces, dashes and
underscores.
</p>

View File

@ -50,7 +50,7 @@
"name": {
title: gettext("Key Pair Name"),
type: "string",
pattern: "^[A-Za-z0-9 -]+$"
pattern: "^[A-Za-z0-9 -_]+$"
}
}
};