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