Sha256: 9340453116241d1b7028c4c2dbd959bf01d9619733c1e85be2c0b8837206bd13

Contents?: true

Size: 259 Bytes

Versions: 18

Compression:

Stored size: 259 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,5}(:[0-9]{1,5})?(\/.*)?$/ix

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

  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
locomotive_cms-2.0.3 lib/locomotive/regexps.rb
locomotive_cms-2.0.2 lib/locomotive/regexps.rb
locomotive_cms-2.0.1 lib/locomotive/regexps.rb
locomotive_cms-2.0.0 lib/locomotive/regexps.rb
tribeca_cms-0.1.1 lib/locomotive/regexps.rb
tribeca_cms-2.0.0.rc12 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc12 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc11 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc10 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc9 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc8 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc7 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc6 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc5 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc4 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc2 lib/locomotive/regexps.rb
locomotive_cms-2.0.0.rc1 lib/locomotive/regexps.rb
locomotive_cms-1.0.0.beta.2 lib/locomotive/regexps.rb