mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-02-09 09:23:56 +00:00
Off by one :(
This commit is contained in:
parent
e978d87b16
commit
1adff30ffa
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ namespace kamokan {
|
||||||
std::string strip_tags_from_highlighted (const std::string& parPastie) {
|
std::string strip_tags_from_highlighted (const std::string& parPastie) {
|
||||||
boost::string_view pastie(parPastie);
|
boost::string_view pastie(parPastie);
|
||||||
auto beg_stripped = pastie.substr(pastie.find("<tt>") + 4);
|
auto beg_stripped = pastie.substr(pastie.find("<tt>") + 4);
|
||||||
auto end_stripped = beg_stripped.substr(0, beg_stripped.size() - 11);
|
auto end_stripped = beg_stripped.substr(0, beg_stripped.size() - 12);
|
||||||
return std::string(end_stripped);
|
return std::string(end_stripped);
|
||||||
}
|
}
|
||||||
} //unnamed namespace
|
} //unnamed namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue