Commit 696c2c85 authored by Jonston Chan's avatar Jonston Chan

Fix proper name capitalization

parent ba2f6dbc
...@@ -84,7 +84,7 @@ This Ruby Regex specialty can have security impact, as often regular expressions ...@@ -84,7 +84,7 @@ This Ruby Regex specialty can have security impact, as often regular expressions
GitLab specific examples can be found [here](https://gitlab.com/gitlab-org/gitlab/-/issues/36029#note_251262187) and [there](https://gitlab.com/gitlab-org/gitlab/-/issues/33569). GitLab specific examples can be found [here](https://gitlab.com/gitlab-org/gitlab/-/issues/36029#note_251262187) and [there](https://gitlab.com/gitlab-org/gitlab/-/issues/33569).
Another example would be this fictional Ruby On Rails controller: Another example would be this fictional Ruby on Rails controller:
```ruby ```ruby
class PingController < ApplicationController class PingController < ApplicationController
...@@ -127,9 +127,9 @@ class Email < ApplicationRecord ...@@ -127,9 +127,9 @@ class Email < ApplicationRecord
DOMAIN_MATCH = Regexp.new('([a-zA-Z0-9]+)+\.com') DOMAIN_MATCH = Regexp.new('([a-zA-Z0-9]+)+\.com')
validates :domain_matches validates :domain_matches
private private
def domain_matches def domain_matches
errors.add(:email, 'does not match') if email =~ DOMAIN_MATCH errors.add(:email, 'does not match') if email =~ DOMAIN_MATCH
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment