Sha256: bd7ff25e9d370a806ccf71b5509d079f39b35a75783fa8ac819a1db3807e9908

Contents?: true

Size: 557 Bytes

Versions: 16

Compression:

Stored size: 557 Bytes

Contents

module Locomotive
  module Regexps

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

    DOMAIN              = /^(([a-z\d])([a-z\d-]){0,61}([a-z\d]))(\.([a-z\d])([a-z\d-]){0,61}([a-z\d]))*$/i

    URL                 = /\A((https?:\/\/)|(ftp:\/))\S+\Z/

    URL_AND_MAILTO      = /\A((https?:\/\/\S+)|(ftp:\/\S+)|(mailto:\S+)|\/\S*)\Z/

    # e.g. hostname, hostname.com, http(s)://hostname, http(s)://hostname.com/
    ASSET_HOST			= /\A((https?:\/\/)?)(([a-z\d])([a-z\d-]){0,61}([a-z\d]))(\.([a-z\d])([a-z\d-]){0,61}([a-z\d]))*\/?$/i

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 lib/locomotive/regexps.rb
locomotivecms-4.2.0.alpha1 lib/locomotive/regexps.rb
locomotivecms-4.1.1 lib/locomotive/regexps.rb
locomotivecms-4.1.0 lib/locomotive/regexps.rb
locomotivecms-4.1.0.rc1 lib/locomotive/regexps.rb
locomotivecms-4.0.3 lib/locomotive/regexps.rb
locomotivecms-4.0.2 lib/locomotive/regexps.rb
locomotivecms-4.0.1 lib/locomotive/regexps.rb
locomotivecms-4.0.0 lib/locomotive/regexps.rb
locomotivecms-4.0.0.rc0 lib/locomotive/regexps.rb
locomotivecms-4.0.0.alpha3 lib/locomotive/regexps.rb
locomotivecms-3.4.1 lib/locomotive/regexps.rb
locomotivecms-4.0.0.alpha2 lib/locomotive/regexps.rb
locomotivecms-4.0.0.alpha1 lib/locomotive/regexps.rb
locomotivecms-3.4.0 lib/locomotive/regexps.rb
locomotivecms-3.3.0 lib/locomotive/regexps.rb