diff --git a/lib/gastropod/active_record/validations.rb b/lib/gastropod/active_record/validations.rb
index <HASH>..<HASH> 100644
--- a/lib/gastropod/active_record/validations.rb
+++ b/lib/gastropod/active_record/validations.rb
@@ -3,7 +3,7 @@ module Gastropod
     module Validations
       def self.included(base)
         base.validates :slug, :uniqueness => true
-        base.validates :slug, :format     => { :with => /^[a-z0-9-]+$/, :allow_blank => true }
+        base.validates :slug, :format     => { :with => /\A[a-z0-9-]+\z/, :allow_blank => true }
         base.validates :slug, :presence   => true
 
         base.before_validation :assign_generated_slug, :if => :generate_slug?
Updates regex to fix Rails 4 security whine.