diff --git a/Library/Homebrew/rubocops/shared/desc_helper.rb b/Library/Homebrew/rubocops/shared/desc_helper.rb index 1043130db9..6acab4a3e1 100644 --- a/Library/Homebrew/rubocops/shared/desc_helper.rb +++ b/Library/Homebrew/rubocops/shared/desc_helper.rb @@ -74,9 +74,9 @@ module RuboCop desc_problem "Description shouldn't end with a full stop." end - # Check if the desc contains unicode characters in the So (emojis or other symbols) range. + # Check if the desc contains Unicode characters in the So (emojis or other symbols) range. if regex_match_group(desc, /\p{So}/) - desc_problem "Description shouldn't contain emojis or unicode characters in the So range." + desc_problem "Description shouldn't contain emojis or Unicode characters in the So range." end # Check if the desc length exceeds maximum length. diff --git a/Library/Homebrew/test/rubocops/cask/desc_spec.rb b/Library/Homebrew/test/rubocops/cask/desc_spec.rb index 5b05d1bf44..65ea26fdd2 100644 --- a/Library/Homebrew/test/rubocops/cask/desc_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/desc_spec.rb @@ -113,7 +113,7 @@ describe RuboCop::Cop::Cask::Desc, :config do expect_offense <<~RUBY cask 'foo' do desc 'Description with a 🍺 symbol' - ^ Description shouldn't contain emojis or unicode characters in the So range. + ^ Description shouldn't contain emojis or Unicode characters in the So range. end RUBY diff --git a/Library/Homebrew/test/rubocops/desc_spec.rb b/Library/Homebrew/test/rubocops/desc_spec.rb index b938eb263c..da21c686b8 100644 --- a/Library/Homebrew/test/rubocops/desc_spec.rb +++ b/Library/Homebrew/test/rubocops/desc_spec.rb @@ -139,7 +139,7 @@ describe RuboCop::Cop::FormulaAudit::Desc do class Foo < Formula url 'https://brew.sh/foo-1.0.tgz' desc 'Description with a 🍺 symbol' - ^ FormulaAudit/Desc: Description shouldn't contain emojis or unicode characters in the So range. + ^ FormulaAudit/Desc: Description shouldn't contain emojis or Unicode characters in the So range. end RUBY