summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-23 17:41:17 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-23 17:41:17 (GMT)
commitb8aa124f6baa0c0a32ccfd7479fa1e6f0dff3487 (patch)
tree3472d3424d9ab67bdc51eeb35b92c9bd86619306 /SwifTools/Linkify.cpp
parent1e0c7d5c9d53ee6678a5f27d554710e6ae56d2da (diff)
downloadswift-b8aa124f6baa0c0a32ccfd7479fa1e6f0dff3487.zip
swift-b8aa124f6baa0c0a32ccfd7479fa1e6f0dff3487.tar.bz2
Fix linkifying links with '+'.
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 7fa8c91..63f06c8 100644
--- a/SwifTools/Linkify.cpp
+++ b/SwifTools/Linkify.cpp
@@ -4,7 +4,7 @@
namespace Swift {
-static const boost::regex linkifyRegexp("(https?://([\\-\\w\\.]+)+(:\\d+)?(/([%\\-\\w/_#\\.]*(\\?\\S+)?)?)?)");
+static const boost::regex linkifyRegexp("(https?://([\\-\\w\\.]+)+(:\\d+)?(/([%\\-\\w/_#\\.\\+]*(\\?\\S+)?)?)?)");
String Linkify::linkify(const String& input) {
return String(boost::regex_replace(