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
30 30
31const int NUM_MESSAGES_TO_TIME_STAMP = 20;31const int NUM_MESSAGES_TO_TIME_STAMP = 20;
32 32
33const QRegularExpression regexLinks("((?:(?:ftp)|(?:https?))://\\S+)");33const QRegularExpression regexLinks("((?:(?:ftp)|(?:https?)|(?:hifi))://\\S+)");
34const QRegularExpression regexHifiLinks("([#@]\\S+)");34const QRegularExpression regexHifiLinks("([#@]\\S+)");
35const QString mentionSoundsPath("/sounds/mention/");35const QString mentionSoundsPath("/sounds/mention/");
36const QString mentionRegex("@(\\b%1\\b)");36const QString mentionRegex("@(\\b%1\\b)");