0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-14 05:20:17 +01:00

ircd:Ⓜ️:room::power: Replace unquote() w/ json::string type.

This commit is contained in:
Jason Volk 2020-03-02 16:29:53 -08:00
parent 61fa79acb8
commit 694b90b04e

View file

@ -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