Skip to content

Commit 6b8ebcd

Browse files
committed
Bug fixes
1 parent bd10f51 commit 6b8ebcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/controller/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports.getUsedStorage = async () => {
8383
module.exports.validateInput = async (key, value) => {
8484
if (!value?.toString()) return "You need to provide the new value";
8585

86-
if ((key === "ping" || key === "download" || key === "upload") && /[^0-9]/.test(value))
86+
if ((key === "ping" || key === "download" || key === "upload") && /[^0-9.]/.test(value))
8787
return "You need to provide a number in order to change this";
8888

8989
if ((key === "ooklaId" || key === "libreId") && (/[^0-9]/.test(value) && value !== "none"))

0 commit comments

Comments
 (0)