aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 14:30:47 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 14:30:47 -0200
commite0f29c51b9bbb41f4235d0948103194096d92cd9 (patch)
tree283c9befa72cdd2a9bd987679ac94367dd02ec96 /activemodel
parentaf5b245065acff4a021b160a23c8c89b03635a81 (diff)
parent18674529f4f3882598ac1f6bee1fbbb93bc3e70b (diff)
downloadrails-e0f29c51b9bbb41f4235d0948103194096d92cd9.tar.gz
rails-e0f29c51b9bbb41f4235d0948103194096d92cd9.tar.bz2
rails-e0f29c51b9bbb41f4235d0948103194096d92cd9.zip
Merge pull request #17144 from skojin/patch-doc-validation-format-z-regexp
fix mistype in doc about \z regexp
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/format.rb2
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 02478dd5b6..46a2e54fba 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