#374 Fix channel numbers smaller than 10 not being allowed.

This commit is contained in:
vexorian 2021-09-19 22:52:56 -04:00
parent 7b1e00d547
commit b7d61cb707

View File

@ -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 {