ImagePipe.Plan.Source (image_pipe_url v0.1.0)

Copy Markdown View Source

Product-neutral source identifiers produced by parsers.

Summary

Functions

Removes the optional leading / from an ordinary root-relative source string.

Types

Functions

normalize(source)

@spec normalize(String.t()) :: String.t()

Removes the optional leading / from an ordinary root-relative source string.

The slash is kept when removing it would change the source kind: a // prefix, or a remainder that starts with a scheme:// prefix.