summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-01-29 23:53:50 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-01-29 23:53:50 (GMT)
commitc7e907730e98176be0fdd4e484f2a903b4228348 (patch)
tree21139f5ccad144e7bba3472954d94a28c14bb3d4 /SwifTools/Linkify.cpp
parent01f868c4040234ed4b1ee7d0e08377a89b928b77 (diff)
downloadswift-c7e907730e98176be0fdd4e484f2a903b4228348.zip
swift-c7e907730e98176be0fdd4e484f2a903b4228348.tar.bz2
Fix tilde in links
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 63f06c8..48162e1 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(