Module: Format

Defined in:
lib/format.rb

Constant Summary collapse

IP_ADDRESS =

Laxly matches an IP Address , would also pass numbers > 255 though

/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.freeze
HTTP_URI =

Laxly matches an HTTP(S) URI

%r{^https?://\S+$}.freeze