Skip to content

Commit

Permalink
vexorian#374 Fix channel numbers smaller than 10 not being allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
vexorian committed Sep 20, 2021
1 parent 7b1e00d commit b7d61cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/directives/channel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b7d61cb

Please sign in to comment.