Commit 5cb27b2e authored by dexterlb's avatar dexterlb Committed by vitalyster

fix regex initialisation on C++98

parent 10eea7ab
......@@ -1794,7 +1794,7 @@ void NetworkPluginServer::handleBuddyRemoved(Buddy *b) {
}
void NetworkPluginServer::wrapIncomingImage(Swift::Message* msg, const pbnetwork::ConversationMessage& payload) {
static boost::regex image_expr{"<img src=[\"']([^\"']+)[\"'].*>"};
static boost::regex image_expr("<img src=[\"']([^\"']+)[\"'].*>");
if (payload.xhtml().find("<img") != std::string::npos) {
boost::smatch match;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment