Skip to content
Snippets Groups Projects
Commit d6f1dc06 authored by maxim_productengine's avatar maxim_productengine
Browse files

MAINT-8532 FIXED Group invite text is overlapped when an empty string is...

MAINT-8532 FIXED Group invite text is overlapped when an empty string is present in the group description ending
parent 46817fcb
No related branches found
No related tags found
No related merge requests found
...@@ -288,9 +288,7 @@ BOOL LLGroupInviteNotificationListItem::postBuild() ...@@ -288,9 +288,7 @@ BOOL LLGroupInviteNotificationListItem::postBuild()
//invitation with any non-default group role, doesn't have newline characters at the end unlike simple invitations //invitation with any non-default group role, doesn't have newline characters at the end unlike simple invitations
std::string invitation_desc = mNoticeTextExp->getValue().asString(); std::string invitation_desc = mNoticeTextExp->getValue().asString();
boost::regex pattern = boost::regex("\n\n$", boost::regex::perl|boost::regex::icase); if (invitation_desc.substr(invitation_desc.size() - 2) != "\n\n")
boost::match_results<std::string::const_iterator> matches;
if(!boost::regex_search(invitation_desc, matches, pattern))
{ {
invitation_desc += "\n\n"; invitation_desc += "\n\n";
mNoticeTextExp->setValue(invitation_desc); mNoticeTextExp->setValue(invitation_desc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment