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:
parent
5ac75bb23b
commit
71d38ae865
|
@ -67,10 +67,9 @@ impl FromStr for Query {
|
||||||
return Err(failure::err_msg(
|
return Err(failure::err_msg(
|
||||||
"Search by Short Key ID is not supported, sorry!"));
|
"Search by Short Key ID is not supported, sorry!"));
|
||||||
}
|
}
|
||||||
let term_nospace = term.replace(" ", "");
|
if let Ok(fp) = Fingerprint::from_str(term) {
|
||||||
if let Ok(fp) = Fingerprint::from_str(&term_nospace) {
|
|
||||||
Ok(ByFingerprint(fp))
|
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))
|
Ok(ByKeyID(keyid))
|
||||||
} else if let Ok(email) = Email::from_str(term) {
|
} else if let Ok(email) = Email::from_str(term) {
|
||||||
Ok(ByEmail(email))
|
Ok(ByEmail(email))
|
||||||
|
|
Loading…
Reference in New Issue