From 0e04bfa7dd7d0144b721cc278dba5cd33cd6964a Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 23 Apr 2012 11:20:35 -0700 Subject: [PATCH] CS-14588: cloudstack 3.0 UI - VM Wizard - name field - allow uppercase. --- ui/scripts/sharedFunctions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js index 0b154522cf6..594f7cc01ac 100644 --- a/ui/scripts/sharedFunctions.js +++ b/ui/scripts/sharedFunctions.js @@ -200,10 +200,10 @@ function isValidJsonString(str) { cloudStack.validate = { vmHostName: function(args) { // 1 ~ 63 characters long - // ASCII letters 'a' through 'z' (case-insensitive), digits '0' through '9', hyphen ('-') + // ASCII letters 'a' through 'z', 'A' through 'Z', digits '0' through '9', hyphen ('-') // must start with a letter // must end with a letter or a digit (must not end with a hyphen) - var regexp = /^[a-z]{1}[a-z0-9\-]{0,61}[a-z0-9]{0,1}$/; + var regexp = /^[a-zA-Z]{1}[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]{0,1}$/; var b = regexp.test(args); //true or false if(b == false) cloudStack.dialog.notice({ message: 'message.validate.instance.name' });