From f06b645b9cc14e29d95c90eacc8cac99f053bbdf Mon Sep 17 00:00:00 2001 From: maxwell Date: Sat, 19 Jun 2010 00:50:16 -0700 Subject: [PATCH] typo in Friend --- app/models/friend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/friend.rb b/app/models/friend.rb index d7c45c132..69b60fd36 100644 --- a/app/models/friend.rb +++ b/app/models/friend.rb @@ -9,7 +9,7 @@ class Friend field :url validates_presence_of :username, :url - givalidates_format_of :url, :with => + validates_format_of :url, :with => /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix before_validation :clean_url