2010-04-10 15:25:07 +00:00
|
|
|
module Locomotive
|
|
|
|
module Regexps
|
2010-05-02 23:33:17 +00:00
|
|
|
|
2010-06-12 21:47:14 +00:00
|
|
|
SUBDOMAIN = /^[a-z][a-z0-9]*[a-z0-9]{1}$/
|
2010-05-02 23:33:17 +00:00
|
|
|
|
|
|
|
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
|