mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 21:10:32 +01:00
ircd:Ⓜ️:room::power: Replace unquote() w/ json::string type.
This commit is contained in:
parent
61fa79acb8
commit
694b90b04e
1 changed files with 7 additions and 7 deletions
|
@ -425,9 +425,9 @@ const try
|
|||
content.at("events")
|
||||
};
|
||||
|
||||
const string_view &level
|
||||
const json::string &level
|
||||
{
|
||||
unquote(events.at(type))
|
||||
events.at(type)
|
||||
};
|
||||
|
||||
ret = json::type(level) == json::NUMBER;
|
||||
|
@ -453,9 +453,9 @@ const try
|
|||
content.at("users")
|
||||
};
|
||||
|
||||
const string_view &level
|
||||
const json::string &level
|
||||
{
|
||||
unquote(users.at(user_id))
|
||||
users.at(user_id)
|
||||
};
|
||||
|
||||
ret = json::type(level) == json::NUMBER;
|
||||
|
@ -492,7 +492,7 @@ const
|
|||
view([&prop, &ret]
|
||||
(const json::object &content)
|
||||
{
|
||||
const auto &value(unquote(content.get(prop)));
|
||||
const json::string &value(content.get(prop));
|
||||
if(value && json::type(value) == json::NUMBER)
|
||||
ret = true;
|
||||
});
|
||||
|
@ -554,9 +554,9 @@ const
|
|||
if(json::type(unquote(member.second)) != json::NUMBER)
|
||||
continue;
|
||||
|
||||
const auto &key
|
||||
const json::string &key
|
||||
{
|
||||
unquote(member.first)
|
||||
member.first
|
||||
};
|
||||
|
||||
const auto &val
|
||||
|
|
Loading…
Add table
Reference in a new issue