Module: EnvParser::Types::InternetTypes
- Defined in:
- lib/env_parser/types/internet_types.rb
Overview
Defines types for internet-related values, adding the following:
:as value |
type returned | default | notes |
---|---|---|---|
:ipv4_address | String | nil |
An IPv4 address in 4-octet dot-decimal notation,
with no CIDR or subnet suffix (e.g. '192.168.0.1' ).
|
:ipv6_address | String | nil |
An IPv6 address, in RFC5952 format. |
:network_port / :port | Integer | nil |
|
:email_address | String | nil |
A "simple" email address, containing only a username and a domain.
Note this does not guarantee RFC5322-conformity. |
:version / :semver | MatchData | nil |
The resulting MatchData has named captures for "major", "minor", "patch", "prerelease", and "buildmetadata".
The Regex used for generating this MatchData is available at: https://regex101.com/r/Ly7O1x/3/ See https://semver.org for additional info. |