summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-10 18:49:21 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-10 18:49:21 (GMT)
commit61f24ccd90d2b7c48b2d5091c11964f455e8e9a8 (patch)
tree7b4a3c98b00800bc6870723a09ab7844ab66bf8d /SwifTools/Linkify.cpp
parent5ddef4042f9049e3f436b21b7b1d6d50789c5a1e (diff)
downloadswift-61f24ccd90d2b7c48b2d5091c11964f455e8e9a8.zip
swift-61f24ccd90d2b7c48b2d5091c11964f455e8e9a8.tar.bz2
Fixed linkification of URLs followed by newlines.
Resolves: #762
Diffstat (limited to 'SwifTools/Linkify.cpp')
-rw-r--r--SwifTools/Linkify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SwifTools/Linkify.cpp b/SwifTools/Linkify.cpp
index 32428ec..822536e 100644
--- a/SwifTools/Linkify.cpp
+++ b/SwifTools/Linkify.cpp
@@ -21,7 +21,7 @@ String Linkify::linkify(const String& input) {
for (size_t i = 0; i < input.getUTF8Size(); ++i) {
char c = input[i];
if (inURL) {
- if (c != ' ' && c != '\t') {
+ if (c != ' ' && c != '\t' && c != '\n') {
currentURL.push_back(c);
}
else {