modules/client/search: Improve argument characters and name intuition.
This commit is contained in:
parent
ced3df67c6
commit
a465098693
|
@ -151,7 +151,7 @@ try
|
||||||
{
|
{
|
||||||
const auto &[key, val]
|
const auto &[key, val]
|
||||||
{
|
{
|
||||||
split(kv, ':')
|
split(kv, '=')
|
||||||
};
|
};
|
||||||
|
|
||||||
if(std::find(begin(names), end(names), key) == end(names))
|
if(std::find(begin(names), end(names), key) == end(names))
|
||||||
|
@ -168,7 +168,7 @@ try
|
||||||
};
|
};
|
||||||
|
|
||||||
json::strung senders;
|
json::strung senders;
|
||||||
when({"senders", ""}, [&](const auto &key, const auto &val)
|
when({"sender", ""}, [&](const auto &key, const auto &val)
|
||||||
{
|
{
|
||||||
if(!valid(m::id::USER, val))
|
if(!valid(m::id::USER, val))
|
||||||
return;
|
return;
|
||||||
|
@ -179,7 +179,7 @@ try
|
||||||
});
|
});
|
||||||
|
|
||||||
json::strung not_senders;
|
json::strung not_senders;
|
||||||
when({"!senders", "!"}, [&](const auto &key, const auto &val)
|
when({"!sender", "!"}, [&](const auto &key, const auto &val)
|
||||||
{
|
{
|
||||||
if(!valid(m::id::USER, val))
|
if(!valid(m::id::USER, val))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue