diff options
author | Sergey Kojin <sergey.kojin@gmail.com> | 2014-10-02 18:10:44 +0400 |
---|---|---|
committer | Sergey Kojin <sergey.kojin@gmail.com> | 2014-10-02 18:10:44 +0400 |
commit | 18674529f4f3882598ac1f6bee1fbbb93bc3e70b (patch) | |
tree | 0beb846996fbadcbc13f941b9a2390f06371d3c7 /activemodel/lib/active_model | |
parent | 7b740f31cc6f88fe20a51eb7da1468082e6fdb5a (diff) | |
download | rails-18674529f4f3882598ac1f6bee1fbbb93bc3e70b.tar.gz rails-18674529f4f3882598ac1f6bee1fbbb93bc3e70b.tar.bz2 rails-18674529f4f3882598ac1f6bee1fbbb93bc3e70b.zip |
fix mistype in doc about \z regexp
replace \Z with regular \z
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/validations/format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 <tt>\A</tt> and <tt>\Z</tt> to match the start and end of the + # Note: use <tt>\A</tt> and <tt>\z</tt> to match the start and end of the # string, <tt>^</tt> and <tt>$</tt> match the start/end of a line. # # Due to frequent misuse of <tt>^</tt> and <tt>$</tt>, you need to pass |