update sumo_id regex

This commit is contained in:
Silver Kuusik 2018-09-12 14:14:52 +02:00
parent 77063f40a5
commit e223517ea2
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ window.addEventListener('load', function() {
// Robot GO button listener
$('.btn-robot-go').click(function() {
// Get and validate the selected robot ID
var robotId = $('#robot-id').val().trim().toLowerCase();
var robotId = $('#robot-id').val().trim();
if (robotId === '' || /^([a-f0-9]{8})$/.test(robotId) == false) {
$('#robot-id, #robot-label').addClass('has-error');
return;