diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-16 18:20:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-16 18:20:52 (GMT) |
commit | b793111e4e4bbbe6738e4d0838e9a99b3580549d (patch) | |
tree | 7ad1e14e80d71229204fa3234294187353e1e28c /SwifTools/Linkify.cpp | |
parent | 05111e25fd10aa140cd823d37ca884b73dad2725 (diff) | |
download | swift-b793111e4e4bbbe6738e4d0838e9a99b3580549d.zip swift-b793111e4e4bbbe6738e4d0838e9a99b3580549d.tar.bz2 |
Fixed Linkify on camel case URLs.
Diffstat (limited to 'SwifTools/Linkify.cpp')
-rw-r--r-- | SwifTools/Linkify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SwifTools/Linkify.cpp b/SwifTools/Linkify.cpp index 8654307..8cc169b 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( |