diff --git a/src/bbcode.cpp b/src/bbcode.cpp index eae38f340..323dd1288 100644 --- a/src/bbcode.cpp +++ b/src/bbcode.cpp @@ -183,7 +183,7 @@ class BBCodeMap { m_TagMap["email="] = std::make_pair(QRegExp("\\[email=\"?([^\\]]*)\"?\\](.*)\\[/email\\]"), "\\2"); m_TagMap["youtube"] = std::make_pair(QRegExp("\\[youtube\\](.*)\\[/youtube\\]"), - "https://youtu.be/\\1"); + "https://www.youtube.com/watch?v=\\1"); // make all patterns non-greedy and case-insensitive