Sha256: 9f6198ff1715501e60e373bf9be1aa373acbb547b380c1a38d85544b7a44c249

Contents?: true

Size: 258 Bytes

Versions: 22

Compression:

Stored size: 258 Bytes

Contents

module Locomotive
  module Regexps

    SUBDOMAIN           = /^[a-z][a-z0-9_-]*[a-z0-9]{1}$/

    DOMAIN              = /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,}(:[0-9]{1,5})?(\/.*)?$/ix

    URL                 = /((http|https|ftp):\/)?\/\S*/

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
locomotive_cms-2.5.5 lib/locomotive/regexps.rb
locomotive_cms-2.5.4 lib/locomotive/regexps.rb
locomotive_cms-2.5.3 lib/locomotive/regexps.rb
locomotive_cms-2.5.2 lib/locomotive/regexps.rb
locomotive_cms-2.5.1 lib/locomotive/regexps.rb
locomotive_cms-2.5.0 lib/locomotive/regexps.rb
locomotive_cms-2.5.0.rc3 lib/locomotive/regexps.rb
locomotive_cms-2.5.0.rc2 lib/locomotive/regexps.rb
locomotive_cms-2.5.0.rc1 lib/locomotive/regexps.rb
locomotive_cms-2.4.1 lib/locomotive/regexps.rb
locomotive_cms-2.4.0 lib/locomotive/regexps.rb
locomotive_cms-2.3.1 lib/locomotive/regexps.rb
locomotive_cms-2.3.0 lib/locomotive/regexps.rb
locomotive_cms-2.2.3 lib/locomotive/regexps.rb
locomotive_cms-2.2.2 lib/locomotive/regexps.rb
locomotive_cms-2.2.1 lib/locomotive/regexps.rb
locomotive_cms-2.2.0 lib/locomotive/regexps.rb
locomotive_cms-2.1.4 lib/locomotive/regexps.rb
locomotive_cms-2.1.3 lib/locomotive/regexps.rb
locomotive_cms-2.1.2 lib/locomotive/regexps.rb