diff options
author | Nuo Yan <nuo@opscode.com> | 2011-02-07 15:56:16 -0800 |
---|---|---|
committer | Nuo Yan <nuo@opscode.com> | 2011-02-07 15:56:16 -0800 |
commit | c7e4003091a1dbd67648dccb1da9555515b65396 (patch) | |
tree | a8fd1465b8c4c4503b6b017557d19d680de19c14 /chef-server-webui | |
parent | 362474876da2e5e12a2b3e0b034f94d088cf44a0 (diff) | |
parent | 6210ef1ff17175c4c8ccd54ef5603b3e8ef9e3ad (diff) | |
download | chef-c7e4003091a1dbd67648dccb1da9555515b65396.tar.gz |
Merge branch 'CHEF-1999'
Diffstat (limited to 'chef-server-webui')
-rw-r--r-- | chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js b/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js index 55ae741ae3..5c26067650 100644 --- a/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js +++ b/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js @@ -19,7 +19,7 @@ function clearVersionBox(box, timestamp){ } function validateVersionBoxValue(box, timestamp){ - if (box.value.match(/\d+\.\d+\.\d+$/) == null){ + if (box.value.match(/^\d+\.\d+\.\d+$/) == null){ if (box.value.length != 0 && document.getElementById('inline_error_message_' + timestamp) == null) $(box).parent().append('<span class="inline_error_message" id="inline_error_message_' + timestamp + '" >Invalid version format. The version should be in the format of 0.0.0.</span>'); if (box.value.length==0) |