mirror of
https://github.com/matrix-construct/construct
synced 2025-03-17 06:50:23 +01:00
ircd:Ⓜ️ Use proper character overload for optimal tokens().
This commit is contained in:
parent
c2d5b8081d
commit
c33ddd278a
3 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
|
|
@ -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]};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue