allow periods in monitor name

This commit is contained in:
Isaac Connor 2017-10-10 10:40:27 -07:00
parent 76d37d4c95
commit 06c61f0324
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ monitorNames['<?php echo validJsStr($name) ?>'] = true;
function validateForm( form ) {
var errors = new Array();
if ( form.elements['newMonitor[Name]'].value.search( /[^\w- ]/ ) >= 0 )
if ( form.elements['newMonitor[Name]'].value.search( /[^\w-\. ]/ ) >= 0 )
errors[errors.length] = "<?php echo translate('BadNameChars') ?>";
else if ( form.elements.mid.value == 0 && monitorNames[form.elements['newMonitor[Name]'].value] )
errors[errors.length] = "<?php echo translate('DuplicateMonitorName') ?>";