From 18674529f4f3882598ac1f6bee1fbbb93bc3e70b Mon Sep 17 00:00:00 2001 From: Sergey Kojin Date: Thu, 2 Oct 2014 18:10:44 +0400 Subject: fix mistype in doc about \z regexp replace \Z with regular \z --- activemodel/lib/active_model/validations/format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/validations/format.rb b/activemodel/lib/active_model/validations/format.rb index ff3e95da34..65f83b0270 100644 --- a/activemodel/lib/active_model/validations/format.rb +++ b/activemodel/lib/active_model/validations/format.rb @@ -77,7 +77,7 @@ module ActiveModel # with: ->(person) { person.admin? ? /\A[a-z0-9][a-z0-9_\-]*\z/i : /\A[a-z][a-z0-9_\-]*\z/i } # end # - # Note: use \A and \Z to match the start and end of the + # Note: use \A and \z to match the start and end of the # string, ^ and $ match the start/end of a line. # # Due to frequent misuse of ^ and $, you need to pass -- cgit v1.2.3