engine/lib/locomotive/regexps.rb

13 lines
372 B
Ruby
Raw Normal View History

2010-04-10 15:25:07 +00:00
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
CONTENT_FOR = /\{\{\s*content_for_([a-zA-Z]{1}[a-zA-Z_0-9]*)(\s+.*)?\s*\}\}/
CONTENT_FOR_LAYOUT = /\{\{\s*content_for_layout\s*\}\}/
2010-04-10 15:25:07 +00:00
end
end