mirror of https://github.com/calzoneman/sync.git
Fix #119
This commit is contained in:
parent
a9dbd908c4
commit
b00e63b622
|
@ -162,6 +162,10 @@
|
|||
}
|
||||
$("#channel").keydown(function(ev) {
|
||||
if(ev.keyCode == 13) {
|
||||
if(!$("#channel").val().match(/^[a-zA-Z0-9-_]+$/)) {
|
||||
alert("Invalid channel names. Channel names may contain alphanumeric characters, underscores, and hyphens");
|
||||
return;
|
||||
}
|
||||
document.location = host + "/r/" + $("#channel").val();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue