From 40dd19be37852d4442a924c2a74bcbbfbf57e054 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Thu, 13 Sep 2018 18:53:09 -0400 Subject: Misc. typos (#8694) Found via `codespell -q 3 --skip="./app/javascript/mastodon/locales,./config/locales"` --- config/initializers/simple_form.rb | 2 +- config/initializers/twitter_regex.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'config/initializers') diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb index 5983918cd..e413cdb44 100644 --- a/config/initializers/simple_form.rb +++ b/config/initializers/simple_form.rb @@ -116,7 +116,7 @@ SimpleForm.setup do |config| # You can define the class to use on all labels. Default is nil. # config.label_class = nil - # You can define the default class to be used on forms. Can be overriden + # You can define the default class to be used on forms. Can be overridden # with `html: { :class }`. Defaulting to none. # config.default_form_class = nil diff --git a/config/initializers/twitter_regex.rb b/config/initializers/twitter_regex.rb index c227f92d3..76b23f416 100644 --- a/config/initializers/twitter_regex.rb +++ b/config/initializers/twitter_regex.rb @@ -28,7 +28,7 @@ module Twitter )/iox REGEXEN[:valid_url] = %r{ ( # $1 total match - (#{REGEXEN[:valid_url_preceding_chars]}) # $2 Preceeding chracter + (#{REGEXEN[:valid_url_preceding_chars]}) # $2 Preceding character ( # $3 URL ((https?|dat|dweb|ipfs|ipns|ssb|gopher):\/\/)? # $4 Protocol (optional) (#{REGEXEN[:valid_domain]}) # $5 Domain(s) -- cgit