build: Build minimized JavaScripts files

This commit is contained in:
Peng-YM
2022-09-09 21:07:28 +08:00
parent 5845ea1a66
commit 1c29771de9
7 changed files with 13 additions and 13 deletions

View File

@@ -105,7 +105,7 @@ domain = match:[0-9a-zA-z-_.]+ {
port = digits:[0-9]+ {
const port = parseInt(digits.join(""), 10);
if (port >= 80 && port <= 65535) {
if (port >= 0 && port <= 65535) {
return port;
}
throw new Error("Invalid port number: " + port);

View File

@@ -130,7 +130,7 @@ ip = & {
port = digits:[0-9]+ {
const port = parseInt(digits.join(""), 10);
if (port >= 80 && port <= 65535) {
if (port >= 0 && port <= 65535) {
return port;
}
}

View File

@@ -109,7 +109,7 @@ domain = match:[0-9a-zA-z-_.]+ {
port = digits:[0-9]+ {
const port = parseInt(digits.join(""), 10);
if (port >= 80 && port <= 65535) {
if (port >= 0 && port <= 65535) {
return port;
}
}

View File

@@ -72,7 +72,7 @@ ip = & {
port = digits:[0-9]+ {
const port = parseInt(digits.join(""), 10);
if (port >= 80 && port <= 65535) {
if (port >= 0 && port <= 65535) {
return port;
} else {
throw new Error("Invalid port: " + port);