#374 Fix channel numbers smaller than 10 not being allowed.
This commit is contained in:
parent
7b1e00d547
commit
b7d61cb707
@ -1675,7 +1675,7 @@ function validURL(url) {
|
||||
}
|
||||
|
||||
function checkChannelNumber(number) {
|
||||
if ( /^[1-9][0-9]+$/.test(number) ) {
|
||||
if ( /^(([1-9][0-9]*)|(0))$/.test(number) ) {
|
||||
let x = parseInt(number);
|
||||
return (0 <= x && x < 10000);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user