Revert "web: ignore whitespace in searched fingerprints"

- ASCII whitespace, among them the space (0x20), was always ignored
    by Sequoia, therefore the change did not change what search terms
    were accepted.

  - This reverts commit ab3f4006dd.
This commit is contained in:
Justus Winter 2019-07-08 17:10:24 +02:00
parent 5ac75bb23b
commit 71d38ae865
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
1 changed files with 2 additions and 3 deletions

View File

@ -67,10 +67,9 @@ impl FromStr for Query {
return Err(failure::err_msg(
"Search by Short Key ID is not supported, sorry!"));
}
let term_nospace = term.replace(" ", "");
if let Ok(fp) = Fingerprint::from_str(&term_nospace) {
if let Ok(fp) = Fingerprint::from_str(term) {
Ok(ByFingerprint(fp))
} else if let Ok(keyid) = KeyID::from_str(&term_nospace) {
} else if let Ok(keyid) = KeyID::from_str(term) {
Ok(ByKeyID(keyid))
} else if let Ok(email) = Email::from_str(term) {
Ok(ByEmail(email))