lib/locomotive/regexps.rb in locomotive_cms-0.0.3.3 vs lib/locomotive/regexps.rb in locomotive_cms-0.0.4.beta1
- old
+ new
@@ -1,13 +1,9 @@
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*/
-
+
end
-end
\ No newline at end of file
+end