We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd10f51 commit 6b8ebcdCopy full SHA for 6b8ebcd
server/controller/config.js
@@ -83,7 +83,7 @@ module.exports.getUsedStorage = async () => {
83
module.exports.validateInput = async (key, value) => {
84
if (!value?.toString()) return "You need to provide the new value";
85
86
- if ((key === "ping" || key === "download" || key === "upload") && /[^0-9]/.test(value))
+ if ((key === "ping" || key === "download" || key === "upload") && /[^0-9.]/.test(value))
87
return "You need to provide a number in order to change this";
88
89
if ((key === "ooklaId" || key === "libreId") && (/[^0-9]/.test(value) && value !== "none"))
0 commit comments