forked from marva/sumorobot-web
update sumo_id regex
This commit is contained in:
parent
77063f40a5
commit
e223517ea2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user