diff --git a/src/routes/hkp.js b/src/routes/hkp.js index cef2084..e8cdf00 100644 --- a/src/routes/hkp.js +++ b/src/routes/hkp.js @@ -96,12 +96,12 @@ class HKP { /** * Checks for a valid key id in the query string. A key must be prepended - * with '0x' and can be between 8 and 40 characters long. + * with '0x' and can be between 8 and 40 hex characters long. * @param {String} keyid The key id * @return {Boolean} If the key id is valid */ checkId(keyid) { - return /^0x[a-fA-Z0-9]{8,40}/.test(keyid); + return /^0x[a-fA-F0-9]{8,40}/.test(keyid); } /**