Sha256: af31ed313f4da2377489a3dfd616be4f3b9699bdd692b5ec3824cdbbbc51c84d

Contents?: true

Size: 244 Bytes

Versions: 12

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true

module LightServiceExt
  module Regex
    TYPE = {
      email: URI::MailTo::EMAIL_REGEXP
    }.freeze

    class << self
      def match?(type, value)
        TYPE[type].match?(value)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
light-service-ext-0.1.11 lib/light-service-ext/regex.rb
light-service-ext-0.1.10 lib/light-service-ext/regex.rb
light-service-ext-0.1.9 lib/light-service-ext/regex.rb
light-service-ext-0.1.8 lib/light-service-ext/regex.rb
light-service-ext-0.1.7 lib/light-service-ext/regex.rb
light-service-ext-0.1.6 lib/light-service-ext/regex.rb
light-service-ext-0.1.5 lib/light-service-ext/regex.rb
light-service-ext-0.1.4 lib/light-service-ext/regex.rb
light-service-ext-0.1.3 lib/light-service-ext/regex.rb
light-service-ext-0.1.2 lib/light-service-ext/regex.rb
light-service-ext-0.1.1 lib/light-service-ext/regex.rb
light-service-ext-0.1.0 lib/light-service-ext/regex.rb