1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Off by one :(

This commit is contained in:
King_DuckZ 2017-06-18 01:40:39 +01:00
parent e978d87b16
commit 1adff30ffa

View file

@ -40,7 +40,7 @@ namespace kamokan {
std::string strip_tags_from_highlighted (const std::string& parPastie) {
boost::string_view pastie(parPastie);
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);
}
} //unnamed namespace