From f329075368e6a6ba1a6fc22ea59c4306de993e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lui=CC=81s=20Arteiro?= Date: Sun, 12 Nov 2023 17:40:23 +0000 Subject: [PATCH] chore: Finishing comment. #64 --- lib/useful.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/useful.ex b/lib/useful.ex index 8601158..5258489 100644 --- a/lib/useful.ex +++ b/lib/useful.ex @@ -216,6 +216,8 @@ defmodule Useful do @doc """ `is_valid_url?/1` checks if a string is a valid URL. + A valid URL starts with a `scheme` (e.g. `http://` or `https://`), + so strings that start with "www" are considered invalid. """ def is_valid_url?(string) do [:scheme, :host, :port]