1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

Bug #4665: Fix service template wizard, wrong pattern for network names validation

This commit is contained in:
Carlos Martín 2016-08-26 17:51:49 +02:00
parent 5764e05834
commit fa4e30a9a5

View File

@ -103,8 +103,8 @@ define(function(require) {
$(".service_networks tbody").append(
'<tr>\
<td>\
<input class="service_network_name" type="text" pattern="[a-z]*"/>\
<small class="form-error">'+Locale.tr("Can only contain alphanumeric and underscore characters")+'</small>\
<input class="service_network_name" type="text" pattern="^\\w+$"/>\
<small class="form-error"><br/>'+Locale.tr("Can only contain alphanumeric and underscore characters")+'</small>\
</td>\
<td>\
<textarea class="service_network_description"/>\