Sha256: 521728f9a3c04222f8156f53f435cc9d17a14bddc8d2cc890432dd6896c4e846
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
# encoding: utf-8 require 'aequitas/rule/format' module Aequitas class Rule class Format # Regex from http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/ URL = begin /(^$)|(^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}((\:[0-9]{1,5})?\/?.*)?$)/ix end Format::FORMATS[:url] = URL end # class Format end # class Rule end # module Aequitas
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aequitas-0.0.2 | lib/aequitas/rule/format/url.rb |