diff --git a/web/directives/channel-config.js b/web/directives/channel-config.js index b9008db..e0ce3ca 100644 --- a/web/directives/channel-config.js +++ b/web/directives/channel-config.js @@ -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 {