commit | e81515cd9fa944deda14bdabbcbfa7ff1a8e5b7d | [log] [tgz] |
---|---|---|
author | Christian Aistleitner <christian@quelltextlich.at> | Tue Jul 15 10:20:57 2014 +0200 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Wed Jul 16 17:24:32 2014 +0900 |
tree | 9ef231791a069409940a7b4d2d13875dcfb2d025 | |
parent | 77167754ef5ccc9b8b8dee28a023f2bb63586aa5 [diff] |
Do not linkify trailing dot or comma When using urls in sentences, those urls are often followed by a dot, or a comma. Like: You can find more information at http://example.com/foo.html. While "http://example.com/foo.html." would be a perfectly fine url, most of the time, the link is meant to not include trailing dot or trailing comma (like in the above example, the link should only link http://example.com/foo.html and not http://example.com/foo.html. ). As linkifying trailing dots and trailing commas does more harm than good, we only treat dots and commas as being part of urls, if they are neither followed by whitespace nor occur at the end of a string. Change-Id: I9a7e42e53f8c7ac746af45967beac380705a2711