Sha256: 22dc2692ffd3857cb01443dafbc6d60a63f31ad40e8631286683076f035fc256
Contents?: true
Size: 391 Bytes
Versions: 11
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true require "uri" module Git module Lint module Validators class Email def initialize text, pattern: URI::MailTo::EMAIL_REGEXP @text = text @pattern = pattern end def valid? String(text).match? pattern end private attr_reader :text, :pattern end end end end
Version data entries
11 entries across 11 versions & 1 rubygems