Skip to content

Commit

Permalink
chore: Finishing comment. #64
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Nov 12, 2023
1 parent 4897c1e commit f329075
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/useful.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f329075

Please sign in to comment.