Fix unescape implementation
This commit is contained in:
parent
2b4b73ae8e
commit
ca2043d9f2
|
@ -91,10 +91,13 @@ String unescape(StringView str, StringView characters, char escape)
|
||||||
{
|
{
|
||||||
res += StringView{it, next+1};
|
res += StringView{it, next+1};
|
||||||
res.back() = *(next+1);
|
res.back() = *(next+1);
|
||||||
|
it = next + 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
res += StringView{it, next == end ? next : next + 1};
|
res += StringView{it, next == end ? next : next + 1};
|
||||||
it = next == end ? next : next + 1;
|
it = next == end ? next : next + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user