mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
trim spaces from search value added
This commit is contained in:
parent
dcd2c790d6
commit
356e97f411
1 changed files with 9 additions and 7 deletions
|
@ -859,8 +859,10 @@ namespace xmreg {
|
||||||
}
|
}
|
||||||
|
|
||||||
string
|
string
|
||||||
search(const string& search_text)
|
search(string search_text)
|
||||||
{
|
{
|
||||||
|
// remove white characters
|
||||||
|
boost::trim(search_text);
|
||||||
|
|
||||||
string result_html {"No such thing found: " + search_text};
|
string result_html {"No such thing found: " + search_text};
|
||||||
|
|
||||||
|
@ -869,7 +871,6 @@ namespace xmreg {
|
||||||
if (search_text.size() < 12)
|
if (search_text.size() < 12)
|
||||||
{
|
{
|
||||||
result_html = show_block(boost::lexical_cast<uint64_t>(search_text));
|
result_html = show_block(boost::lexical_cast<uint64_t>(search_text));
|
||||||
}
|
|
||||||
|
|
||||||
// nasty check if output is "Cant get" as a sign of
|
// nasty check if output is "Cant get" as a sign of
|
||||||
// a not found tx. Later need to think of something better.
|
// a not found tx. Later need to think of something better.
|
||||||
|
@ -877,6 +878,7 @@ namespace xmreg {
|
||||||
{
|
{
|
||||||
return result_html;
|
return result_html;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// second let try searching for tx
|
// second let try searching for tx
|
||||||
result_html = show_tx(search_text);
|
result_html = show_tx(search_text);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue