Browse Source

Fix bug on Rfc1123::Public

master v0.2.3
Arthur Poulet 6 years ago
parent
commit
c27bd639d3
No known key found for this signature in database GPG Key ID: 7C42395DCA99B923
  1. 3
      CHANGELOG
  2. 4
      lib/ruby_email/rfc1123/public.rb
  3. 2
      version

3
CHANGELOG

@ -1,3 +1,6 @@
v0.2.3
* Fix bug on Rfc1123::Public
v0.2.2.2
* Update deps / license

4
lib/ruby_email/rfc1123/public.rb

@ -5,8 +5,8 @@ module RubyEmail
# Internet realist version of {Rfc5322}. It requires 2 names (a.b).
class Public < Rfc1123
DOT_ATOM_TEXT = "(?=.{1,253})((#{ATOM_ALL}\\.)+#{ATOM_FIRST})"
VALIDE = "(?<domain>#{DOT_ATOM_TEXT})"
DOT_ATOM_TEXT = "((#{ATOM_ALL}\\.)+#{ATOM_FIRST})"
VALIDE = "(?<domain>(?!.{254,})((#{DOT_ATOM_TEXT})))"
REGEXP = Regexp.new "\\A#{VALIDE}\\Z"
module String

2
version

@ -1 +1 @@
0.2.2.2
0.2.3

Loading…
Cancel
Save