summaryrefslogtreecommitdiff
path: root/href.go
diff options
context:
space:
mode:
Diffstat (limited to 'href.go')
-rw-r--r--href.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/href.go b/href.go
index b18b3f3..bd4cec6 100644
--- a/href.go
+++ b/href.go
@@ -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:"):