Module: LightServiceExt::Regex
- Defined in:
- lib/light-service-ext/regex.rb
Constant Summary collapse
- TYPE =
{ email: URI::MailTo::EMAIL_REGEXP }.freeze
Class Method Summary collapse
Class Method Details
.match?(type, value) ⇒ Boolean
10 11 12 |
# File 'lib/light-service-ext/regex.rb', line 10 def match?(type, value) TYPE[type].match?(value) end |