Skip to content

Commit

Permalink
JIRA-PLATTFORM-602: Also allow @ for contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Jun 27, 2019
1 parent 9b35d14 commit e6f401b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Thruk/Controller/api_conf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,10 @@ sub display_editor {
}
function validateName () {
var str = document.getElementById("itemname").value;
if( /^[\w-.]+$/.test(str)) {
if( /^[\w-.\@]+$/.test(str)) {
return true;
} else {
popitup("Invalid name! Please use only a-Z, 0-9 and _-. in the name field.");
popitup("Invalid name! Please use only a-Z, 0-9 and _-.@ in the name field.");
return false;
}
}
Expand Down

0 comments on commit e6f401b

Please sign in to comment.