From f787d3f4644bf9aed691fd6c5e30e11ee08b231a Mon Sep 17 00:00:00 2001 From: Cranken Date: Wed, 26 Jul 2017 12:01:23 +0200 Subject: [PATCH 1/2] Added support for non http/https links. (#82) --- src/messages/messagebuilder.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/messages/messagebuilder.cpp b/src/messages/messagebuilder.cpp index aec581b8b..6c2bf89f7 100644 --- a/src/messages/messagebuilder.cpp +++ b/src/messages/messagebuilder.cpp @@ -10,7 +10,7 @@ MessageBuilder::MessageBuilder() : _words() { _parseTime = std::chrono::system_clock::now(); - regex.setPattern("\\bhttps?:\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|]"); + regex.setPattern("(\\bhttps?:\/\/)?[-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|]"); regex.setPatternOptions(QRegularExpression::CaseInsensitiveOption); } @@ -54,8 +54,11 @@ void MessageBuilder::appendTimestamp(time_t time) QString MessageBuilder::matchLink(const QString &string) { - QRegularExpressionMatch match = regex.match(string); - return match.captured(); + QString match = regex.match(string,0,QRegularExpression::PartialPreferCompleteMatch,QRegularExpression::NoMatchOption).captured(); + if(!match.contains(QRegularExpression("\\bhttps?:\/\/"))){ + match.insert(0,"https://"); + } + return match; } } // namespace messages From 6115f578302a2cf0e011086c3d04a35c75aaf69b Mon Sep 17 00:00:00 2001 From: coral Date: Thu, 27 Jul 2017 23:27:14 +0200 Subject: [PATCH 2/2] xD (#83) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d365e5b9a..5d1e40f7b 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,11 @@ download the [boost library](https://sourceforge.net/projects/boost/files/boost/ ### linux ??? + +### Mac OSX +1. Install XCode and XCode Command Line Utilites +2. Install QT Creator +3. Install brew https://brew.sh/ +4. `brew install boost openssl rapidjson` +5. Build the garbage using QT creator +6. gachiGASM \ No newline at end of file