mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd: Fix bug.
This commit is contained in:
parent
7ed69485c6
commit
1346fdd639
1 changed files with 6 additions and 4 deletions
|
@ -524,6 +524,7 @@ inline ircd::string_view
|
|||
ircd::lstrip(string_view str,
|
||||
const string_view &c)
|
||||
{
|
||||
if(c)
|
||||
while(startswith(str, c))
|
||||
str = str.substr(size(c));
|
||||
|
||||
|
@ -536,6 +537,7 @@ ircd::lstrip(string_view str,
|
|||
const string_view &c,
|
||||
size_t n)
|
||||
{
|
||||
if(c)
|
||||
while(startswith(str, c) && n--)
|
||||
str = str.substr(size(c));
|
||||
|
||||
|
|
Loading…
Reference in a new issue