Fix key id regex

This commit is contained in:
Tankred Hase 2016-05-26 10:42:35 +02:00
parent 992fd0a4e0
commit e23b65ac0f

View File

@ -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);
}
/**