Sha256: ed2c8b05697faf9ed67ef376a56ba88434a86b57fd267fe298594c8bf3fa676e

Contents?: true

Size: 256 Bytes

Versions: 10

Compression:

Stored size: 256 Bytes

Contents

# frozen_string_literal: true

module Format
  # Laxly matches an IP Address , would also pass numbers > 255 though
  IP_ADDRESS = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.freeze

  # Laxly matches an HTTP(S) URI
  HTTP_URI = %r{^https?:\/\/\S+$}.freeze
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
HornsAndHooves-publify_core-10.5.0 lib/format.rb
HornsAndHooves-publify_core-10.4.0 lib/format.rb
HornsAndHooves-publify_core-10.3.0 lib/format.rb
HornsAndHooves-publify_core-10.2.0 lib/format.rb
HornsAndHooves-publify_core-10.1.1 lib/format.rb
HornsAndHooves-publify_core-10.1.0 lib/format.rb
HornsAndHooves-publify_core-10.0.3 lib/format.rb
HornsAndHooves-publify_core-10.0.2 lib/format.rb
HornsAndHooves-publify_core-10.0.1 lib/format.rb
HornsAndHooves-publify_core-10.0.0 lib/format.rb