update sumo_id regex

This commit is contained in:
Silver Kuusik 2018-09-12 14:14:52 +02:00
parent 77063f40a5
commit e223517ea2

View File

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