aboutsummaryrefslogtreecommitdiff
path: root/api/routes
diff options
context:
space:
mode:
Diffstat (limited to 'api/routes')
-rw-r--r--api/routes/getAKNSKeyFromBase/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/routes/getAKNSKeyFromBase/index.js b/api/routes/getAKNSKeyFromBase/index.js
index 8e6d57a..587314a 100644
--- a/api/routes/getAKNSKeyFromBase/index.js
+++ b/api/routes/getAKNSKeyFromBase/index.js
@@ -68,7 +68,7 @@ function getAKNSKeyFromBase(req, res)
var args = req.url.split("/");
var key = args[3];
regex= /[a-zA-Z0-9+\/=]{29}/
- const base64Regex = /^[A-Z0-9+\/=]/i;
+ const base64Regex = /^[A-Z0-9+\/=]{28}/i;
if (base64Regex.test(key))
{
// key = key.toUpperCase();