Sha256: e6e162c88543b85f82a9cb1d7332036d41b76f69db2920684a102f6da3d33fcb

Contents?: true

Size: 298 Bytes

Versions: 61

Compression:

Stored size: 298 Bytes

Contents

module Spider; module DataTypes
    
    class Email < DataType
        maps_to 'text'
        
        def self.check(val)
            raise FormatError, _("%s is not a valid e-mail address") % val unless /\A[\w\._%-]+@[\w\.-]+\.[a-zA-Z]{2,4}\z/
        end
        
        
    end
    
end; end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-0.6.1 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.0 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.19 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.18 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.17 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.16 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.15 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.14 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.13 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.12 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.11 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.10 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.9 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.7 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.6 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.5 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.4 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.3 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.2 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.5.1 lib/spiderfw/model/datatypes/email.rb