From b7d61cb707778fa695d9f5b691fa1f0884d61eba Mon Sep 17 00:00:00 2001 From: vexorian Date: Sun, 19 Sep 2021 22:52:56 -0400 Subject: [PATCH] #374 Fix channel numbers smaller than 10 not being allowed. --- web/directives/channel-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {