History

Add hifi:// clickable links to chat

The handling also needed to be updated to handle domains correctly - just routing to goToURL instead of gTo fixes this.

Ryan Huffman committed 12 years ago

Commit fdaa42b1 parent 6762d4d2 files · +2 −4Browse files

Showing the changes to interface/src/ui/ChatWindow.cpp (1 of 2 files). Show all

Unified · Split

interface/src/ui/ChatWindow.cpp+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 const int NUM_MESSAGES_TO_TIME_STAMP = 20;
3232
33−const QRegularExpression regexLinks("((?:(?:ftp)|(?:https?))://\\S+)");
33+const QRegularExpression regexLinks("((?:(?:ftp)|(?:https?)|(?:hifi))://\\S+)");
3434 const QRegularExpression regexHifiLinks("([#@]\\S+)");
3535 const QString mentionSoundsPath("/sounds/mention/");
3636 const QString mentionRegex("@(\\b%1\\b)");