summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-18 20:49:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-18 20:49:42 (GMT)
commitb6594d2bdd57bf786fcc62a35f8e837ba8d221cc (patch)
tree830a0900d3dbfd8a7eaf8239ca6243b7ff9f1be5 /SwifTools/Linkify.cpp
parent013725b6ac01ee0351cd61701588099dc1ec1258 (diff)
downloadswift-b6594d2bdd57bf786fcc62a35f8e837ba8d221cc.zip
swift-b6594d2bdd57bf786fcc62a35f8e837ba8d221cc.tar.bz2
Fix linkifying of urls 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 8cc169b..7fa8c91 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(