diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-12-25 15:15:38 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-12-25 15:15:38 +0100 |
commit | 384585ae8848a5f16d570c5febf16eaa7b2084c6 (patch) | |
tree | eadee7d75aca13c17a5c15f7ec08646eb28dd0e0 /href.go | |
parent | 422a15a09efd2d44fe53c5ce2c46bc8b5aee08e6 (diff) |
minor fixes
Diffstat (limited to 'href.go')
-rw-r--r-- | href.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ func getTitle(uri string) (string, error) { func getLinks(s string) (ret []string) { for _, v := range strings.Fields(s) { switch { - case strings.HasPrefix(v, "www"): + case strings.HasPrefix(v, "www."): v = "http://" + v fallthrough case strings.HasPrefix(v, "http:"), strings.HasPrefix(v, "https:"): |