lib/locomotive/regexps.rb in locomotive_cms-1.0.0.beta vs lib/locomotive/regexps.rb in locomotive_cms-1.0.0.beta.2
- old
+ new
@@ -3,7 +3,9 @@
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