thesis v0.0.28 Thesis.Utilities

Module that provides helper functions.

Summary

Functions

Takes a URL and strips unnecessary characters

Functions

normalize_url(url)

Takes a URL and strips unnecessary characters.

iex> Thesis.Utilities.normalize_url("http://infinite.red//ignite//foo")
"http://infinite.red/ignite/foo"
iex> Thesis.Utilities.normalize_url("https://infinite.red/ignite/foo/")
"https://infinite.red/ignite/foo"
parameterize(str)
random_string(length)