0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 05:29:00 +02:00

ircd:Ⓜ️ Use proper character overload for optimal tokens().

This commit is contained in:
Jason Volk 2022-08-01 20:26:11 -07:00
parent c2d5b8081d
commit c33ddd278a
3 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ try
json::get(event, top, json::object{})
};
tokens(path, ".", [&value]
tokens(path, '.', [&value]
(const string_view &key)
{
if(!json::type(value, json::OBJECT))

View file

@ -295,7 +295,7 @@ ircd::m::get_room_keys_keys(client &client,
{
string_view part[4]; const auto parts
{
tokens(state_key, ":", part)
tokens(state_key, ':', part)
};
const auto &_version{part[3]};

View file

@ -17813,7 +17813,7 @@ console_cmd__gpt__raw(opt &out, const string_view &line)
const auto text
{
tokens_after(line, " ", skips)
tokens_after(line, ' ', skips)
};
const unique_mutable_buffer buf
@ -17866,7 +17866,7 @@ console_cmd__gpt__query(opt &out, const string_view &line)
};
std::string text {"Q: "s};
text += tokens_after(line, " ", skips);
text += tokens_after(line, ' ', skips);
text += "\n\nA:";
const unique_mutable_buffer buf